JOL has an thread-safe issue with

Aleksey Shipilev shade at redhat.com
Wed May 26 10:28:54 UTC 2021


On 5/26/21 12:15 PM, Igor Nikonov wrote:
> We had to change
> 
> GraphLayout.parseInstance(this) .totalSize();
> 
> with
> 
> GraphLayout graphLayout = null;
>          synchronized (Sizeable.class) {
>              graphLayout = GraphLayout.parseInstance(this);
>          }
>          return (int) graphLayout.totalSize();
> 
> in order to avoid getting

(this message seem to be truncated)

Avoid getting what?

-- 
Thanks,
-Aleksey



More information about the jol-dev mailing list