提交 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() { ...@@ -307,7 +307,7 @@ void G1MarkSweep::mark_sweep_phase3() {
ClassLoaderDataGraph::clear_claimed_marks(); ClassLoaderDataGraph::clear_claimed_marks();
sh->process_strong_roots(true, // activate StrongRootsScope 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_pointer_closure,
&GenMarkSweep::adjust_klass_closure); &GenMarkSweep::adjust_klass_closure);
......
...@@ -294,7 +294,7 @@ void GenMarkSweep::mark_sweep_phase3(int level) { ...@@ -294,7 +294,7 @@ void GenMarkSweep::mark_sweep_phase3(int level) {
gch->gen_process_strong_roots(level, gch->gen_process_strong_roots(level,
false, // Younger gens are not roots. false, // Younger gens are not roots.
true, // activate StrongRootsScope 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_pointer_closure, &adjust_pointer_closure,
&adjust_klass_closure); &adjust_klass_closure);
......
...@@ -239,8 +239,6 @@ static AlwaysTrueClosure always_true; ...@@ -239,8 +239,6 @@ static AlwaysTrueClosure always_true;
void SharedHeap::process_weak_roots(OopClosure* root_closure) { void SharedHeap::process_weak_roots(OopClosure* root_closure) {
// Global (weak) JNI handles // Global (weak) JNI handles
JNIHandles::weak_oops_do(&always_true, root_closure); JNIHandles::weak_oops_do(&always_true, root_closure);
StringTable::oops_do(root_closure);
} }
void SharedHeap::set_barrier_set(BarrierSet* bs) { void SharedHeap::set_barrier_set(BarrierSet* bs) {
......
...@@ -240,8 +240,7 @@ public: ...@@ -240,8 +240,7 @@ public:
OopClosure* roots, OopClosure* roots,
KlassClosure* klass_closure); KlassClosure* klass_closure);
// Apply "root_closure" to all the weak roots of the system. // Apply "root_closure" to the JNI weak roots..
// These include JNI weak roots and string table.
void process_weak_roots(OopClosure* root_closure); void process_weak_roots(OopClosure* root_closure);
// The functions below are helper functions that a subclass of // 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.
先完成此消息的编辑!
想要评论请 注册