ObjectSynchronizer iterate only in-use monitors?

Robbin Ehn robbin.ehn at oracle.com
Tue May 16 09:24:31 UTC 2017


Hi,

On 05/16/2017 11:13 AM, Roman Kennke wrote:
>>>>> http://cr.openjdk.java.net/~rkennke/deflate-per-thread/webrev.01/

I only had a quick look, one thing that is troubling is that:

SafepointSynchronize::begin() -> SafepointSynchronize::do_cleanup_tasks() -> ObjectSynchronizer::deflate_idle_monitors()
no longer actually deflates threads om list, so that
ObjectSynchronizer::omAlloc(..)  -> InduceScavenge() -> VMThread::execute(new VM_ForceAsyncSafepoint())
do not have intended effect?

/Robbin

> 
> Roman
> 


More information about the hotspot-runtime-dev mailing list