Continuation.Pinned MONITOR vs CRITICAL_SECTION

Alan Bateman Alan.Bateman at oracle.com
Thu Jul 18 17:04:52 UTC 2019


On 18/07/2019 17:44, Arkadiusz Gasiński wrote:
> Hi,
>
> Are both MONITOR and CRITICAL_SECTION Continuation.Pinned enums really
> needed? I assume that MONITOR means that the Thread/Fiber holds object’s
> native monitor obtained by entering synchronized method/block (i.e.
> critical section). Or is my assumption wrong?
>
CRITICAL_SECTION relates to pin/unpin. There isn't anything in the JDK 
using these at this time so you probably won't see this this as a reason 
value.

-Alan.



More information about the loom-dev mailing list