# HG changeset patch # User poonam # Date 1435256094 0 # Node ID a584c90666383009d180846fcf19cc15e48bb407 # Parent 3dac8951203b7da88df1e3c8e5ce2fe75b730a0a# Parent 6158239655bc3d4549255c8c104340f48ca81fb9 Merge diff -r 3dac8951203b -r a584c9066638 hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp --- a/hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp Thu Jun 25 15:43:16 2015 +0000 +++ b/hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp Thu Jun 25 18:14:54 2015 +0000 @@ -2702,9 +2702,11 @@ // 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.