How to native debug Java on macOS?

Vitaly Davidovich vitalyd at gmail.com
Tue Oct 1 22:30:59 UTC 2019


On Tue, Oct 1, 2019 at 1:08 PM Alexander Miloslavskiy <
alexandr.miloslavskiy at gmail.com> wrote:

> On 01.10.2019 19:04, Chris Plummer wrote:
> > BTW, it looks like in both cases the bad address is the polling page +
> > 8, so I'm not too sure the point you are trying to make about that.
>
> "Page" is usually 4KB.
>
Looks like the base poll page addresses are 4k aligned if you take the 8
out.

The 8 is a value hotspot uses to differentiate an armed vs disarmed page
but only when threadlocal handshakes are used, AFAIK.  See
https://github.com/openjdk/jdk11u/blob/29c30e723c284f97019f1644e8ed72195fc24683/src/hotspot/share/runtime/safepointMechanism.cpp#L42

Have you tried disabling threadlocal handshakes?

-- 
Sent from my phone


More information about the hotspot-dev mailing list