提交 f3e6573b 编写于 作者: P pliden

8046231: G1: Code root location ... from nmethod ... not in strong code roots for region

Reviewed-by: tschatzl, ehelin
上级 52958a5f
...@@ -688,8 +688,10 @@ nmethod::nmethod( ...@@ -688,8 +688,10 @@ nmethod::nmethod(
_hotness_counter = NMethodSweeper::hotness_counter_reset_val(); _hotness_counter = NMethodSweeper::hotness_counter_reset_val();
code_buffer->copy_values_to(this); code_buffer->copy_values_to(this);
if (ScavengeRootsInCode && detect_scavenge_root_oops()) { if (ScavengeRootsInCode) {
CodeCache::add_scavenge_root_nmethod(this); if (detect_scavenge_root_oops()) {
CodeCache::add_scavenge_root_nmethod(this);
}
Universe::heap()->register_nmethod(this); Universe::heap()->register_nmethod(this);
} }
debug_only(verify_scavenge_root_oops()); debug_only(verify_scavenge_root_oops());
...@@ -773,8 +775,10 @@ nmethod::nmethod( ...@@ -773,8 +775,10 @@ nmethod::nmethod(
_hotness_counter = NMethodSweeper::hotness_counter_reset_val(); _hotness_counter = NMethodSweeper::hotness_counter_reset_val();
code_buffer->copy_values_to(this); code_buffer->copy_values_to(this);
if (ScavengeRootsInCode && detect_scavenge_root_oops()) { if (ScavengeRootsInCode) {
CodeCache::add_scavenge_root_nmethod(this); if (detect_scavenge_root_oops()) {
CodeCache::add_scavenge_root_nmethod(this);
}
Universe::heap()->register_nmethod(this); Universe::heap()->register_nmethod(this);
} }
DEBUG_ONLY(verify_scavenge_root_oops();) DEBUG_ONLY(verify_scavenge_root_oops();)
...@@ -889,8 +893,10 @@ nmethod::nmethod( ...@@ -889,8 +893,10 @@ nmethod::nmethod(
code_buffer->copy_values_to(this); code_buffer->copy_values_to(this);
debug_info->copy_to(this); debug_info->copy_to(this);
dependencies->copy_to(this); dependencies->copy_to(this);
if (ScavengeRootsInCode && detect_scavenge_root_oops()) { if (ScavengeRootsInCode) {
CodeCache::add_scavenge_root_nmethod(this); if (detect_scavenge_root_oops()) {
CodeCache::add_scavenge_root_nmethod(this);
}
Universe::heap()->register_nmethod(this); Universe::heap()->register_nmethod(this);
} }
debug_only(verify_scavenge_root_oops()); debug_only(verify_scavenge_root_oops());
......
...@@ -6950,7 +6950,7 @@ public: ...@@ -6950,7 +6950,7 @@ public:
return; return;
} }
if (ScavengeRootsInCode && nm->detect_scavenge_root_oops()) { if (ScavengeRootsInCode) {
_g1h->register_nmethod(nm); _g1h->register_nmethod(nm);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册