8214408: Migrate EventsOnOff to using the same allocateAndCheck method
Summary: Move code to the more stable version used by other tests
Reviewed-by: sspitsyn, amenkov
^build/
^dist/
^.idea/
nbproject/private/
^webrev
^.src-rev$
^.jib/
\.DS_Store
\.metadata/
\.recommenders/
test/nashorn/script/external
test/nashorn/lib
NashornProfile.txt
.*/JTreport/.*
.*/JTwork/.*
.*/.git/.*