提交 92b3c0e6 编写于 作者: S stefank

8034764: Use process_strong_roots to adjust the StringTable

Reviewed-by: tschatzl, brutisso
上级 b4ead34e
......@@ -307,7 +307,7 @@ void G1MarkSweep::mark_sweep_phase3() {
ClassLoaderDataGraph::clear_claimed_marks();
sh->process_strong_roots(true, // activate StrongRootsScope
SharedHeap::SO_AllClasses | SharedHeap::SO_AllCodeCache,
SharedHeap::SO_AllClasses | SharedHeap::SO_Strings | SharedHeap::SO_AllCodeCache,
&GenMarkSweep::adjust_pointer_closure,
&GenMarkSweep::adjust_klass_closure);
......
......@@ -294,7 +294,7 @@ void GenMarkSweep::mark_sweep_phase3(int 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);
......
......@@ -239,8 +239,6 @@ static AlwaysTrueClosure always_true;
void SharedHeap::process_weak_roots(OopClosure* root_closure) {
// Global (weak) JNI handles
JNIHandles::weak_oops_do(&always_true, root_closure);
StringTable::oops_do(root_closure);
}
void SharedHeap::set_barrier_set(BarrierSet* bs) {
......
......@@ -240,8 +240,7 @@ public:
OopClosure* roots,
KlassClosure* klass_closure);
// Apply "root_closure" to all the weak roots of the system.
// These include JNI weak roots and string table.
// Apply "root_closure" to the JNI weak roots..
void process_weak_roots(OopClosure* root_closure);
// The functions below are helper functions that a subclass of
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册