mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8046231: G1: Code root location ... from nmethod ... not in strong code roots for region
Reviewed-by: tschatzl, ehelin
This commit is contained in:
parent
8e7c8f1d88
commit
d0e17d1ff0
2 changed files with 13 additions and 7 deletions
|
@ -669,8 +669,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());
|
||||||
|
@ -754,8 +756,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();)
|
||||||
|
@ -870,8 +874,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());
|
||||||
|
|
|
@ -6995,7 +6995,7 @@ public:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ScavengeRootsInCode && nm->detect_scavenge_root_oops()) {
|
if (ScavengeRootsInCode) {
|
||||||
_g1h->register_nmethod(nm);
|
_g1h->register_nmethod(nm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue