src/share/vm/memory/genMarkSweep.cpp
Print this page
rev 5892 : imported patch moveStringsProcessing
@@ -292,11 +292,11 @@
adjust_pointer_closure.set_orig_generation(gch->get_gen(level));
gch->gen_process_strong_roots(level,
false, // Younger gens are not roots.
true, // activate StrongRootsScope
- SharedHeap::SO_AllClasses | SharedHeap::SO_AllCodeCache,
+ SharedHeap::SO_AllClasses | SharedHeap::SO_Strings | SharedHeap::SO_AllCodeCache,
&adjust_pointer_closure,
&adjust_pointer_closure,
&adjust_klass_closure);
gch->gen_process_weak_roots(&adjust_pointer_closure);