mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8129108: nmethod related crash in CMS
Add SO_AllCodeCache to root scanning options when not unloading classes with a CMS collection cycle Reviewed-by: mgerdin, jwilhelm
This commit is contained in:
parent
e7a2bfa767
commit
c7612a1138
1 changed files with 4 additions and 2 deletions
|
@ -2702,9 +2702,11 @@ void CMSCollector::setup_cms_unloading_and_verification_state() {
|
|||
// Not unloading classes this cycle
|
||||
assert(!should_unload_classes(), "Inconsistency!");
|
||||
|
||||
// If we are not unloading classes then add SO_AllCodeCache to root
|
||||
// scanning options.
|
||||
add_root_scanning_option(rso);
|
||||
|
||||
if ((!verifying() || unloaded_classes_last_cycle()) && should_verify) {
|
||||
// Include symbols, strings and code cache elements to prevent their resurrection.
|
||||
add_root_scanning_option(rso);
|
||||
set_verifying(true);
|
||||
} else if (verifying() && !should_verify) {
|
||||
// We were verifying, but some verification flags got disabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue