--- old/src/share/vm/gc/serial/genMarkSweep.cpp 2016-09-21 14:34:29.156848205 +0200 +++ new/src/share/vm/gc/serial/genMarkSweep.cpp 2016-09-21 14:34:29.020842895 +0200 @@ -197,10 +197,10 @@ StrongRootsScope srs(1); gch->full_process_roots(&srs, + false, // not the adjust phase + GenCollectedHeap::SO_None, ClassUnloading, // only strong roots if ClassUnloading // is enabled - GenCollectedHeap::SO_None, - false, // not the adjust phase &follow_root_closure, &follow_cld_closure); } @@ -295,11 +295,11 @@ StrongRootsScope srs(1); gch->full_process_roots(&srs, - false, // all roots - GenCollectedHeap::SO_AllCodeCache, - true, // this is the adjust phase - &adjust_pointer_closure, - &adjust_cld_closure); + true, // this is the adjust phase + GenCollectedHeap::SO_AllCodeCache, + false, // all roots + &adjust_pointer_closure, + &adjust_cld_closure); } gch->gen_process_weak_roots(&adjust_pointer_closure);