mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8220411: Remove ScavengeRootsInCode=0 code
Reviewed-by: thartmann, coleenp
This commit is contained in:
parent
3ec1137c1f
commit
b9cf9e7ca4
10 changed files with 29 additions and 83 deletions
|
@ -611,10 +611,10 @@ nmethod::nmethod(
|
|||
code_buffer->copy_values_to(this);
|
||||
|
||||
clear_unloading_state();
|
||||
if (ScavengeRootsInCode) {
|
||||
Universe::heap()->register_nmethod(this);
|
||||
}
|
||||
|
||||
Universe::heap()->register_nmethod(this);
|
||||
debug_only(Universe::heap()->verify_nmethod(this));
|
||||
|
||||
CodeCache::commit(this);
|
||||
}
|
||||
|
||||
|
@ -771,9 +771,8 @@ nmethod::nmethod(
|
|||
debug_info->copy_to(this);
|
||||
dependencies->copy_to(this);
|
||||
clear_unloading_state();
|
||||
if (ScavengeRootsInCode) {
|
||||
Universe::heap()->register_nmethod(this);
|
||||
}
|
||||
|
||||
Universe::heap()->register_nmethod(this);
|
||||
debug_only(Universe::heap()->verify_nmethod(this));
|
||||
|
||||
CodeCache::commit(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue