Running the gc/g1/humongousObjects/TestHumongousClassLoader test with class unloading disabled makes it fail.
Add @requires to the test that prohibits execution if e.g. -XX:-ClassLoading or -XX:-ClassUnloadingWithConcurrentMark is set.
Add @requires to the test that prohibits execution if e.g. -XX:-ClassLoading or -XX:-ClassUnloadingWithConcurrentMark is set.