<div dir="ltr">Hi,<div><br></div><div>We found that hotspot crashes when CMSClassUnloadingEnabled is true, and CMSClassUnloadingMaxInterval > 0.</div><div>This is on hotspot24 and u40.</div><div>This is easily reproducible with DaCapo tradesoap benchmark with heapsize around 200MB.</div>
<div><br></div><div>The reason for the crash is that CMS sets the root set when CMSClassUnloadingEnabled is on during the constructor phase assuming that every CMS cycle will unload the class.</div><div>However, when CMSClassUnloadingMaxInterval > 0, CMS may not unload classes ended up crashing.</div>
<div>I think this is apparently a bug, and I attach the fix.</div><div>Please take a look at the attached patch.</div><div>My changes are resetting the root scanning option on every CMS cycle in setup_cms_unloading_and_verification_state() if CMSCLassUnloadingEnabled is on.</div>
<div><br></div><div>Please take a look and let us know how to proceed.</div><div><br></div><div>Thanks,</div><div>Jungwoo</div></div>