8220411: Remove ScavengeRootsInCode=0 code

Reviewed-by: thartmann, coleenp
This commit is contained in:
Stefan Karlsson 2019-03-14 09:08:17 +01:00
parent 3ec1137c1f
commit b9cf9e7ca4
10 changed files with 29 additions and 83 deletions

View file

@ -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);