RFR(XL): 8185640: Thread-local handshakes
aph at redhat.com
Thu Oct 26 08:58:31 UTC 2017
On 25/10/17 23:05, Doerr, Martin wrote:
> after looking at the bytecodes again, I remembered that ret is olny
> for jsr. I think polling should also be done for the regular
> A poll at the beginning of TemplateTable::_return should do the
> job. Unfortunately, it doesn't fit into your dispatch scheme.
I'm wondering if this is a good idea at all: it could increase the
latency of taking a safepoint in bytecode. Granted, it does avoid
some significant code bloat in the interpreter.
BTW, I don't understand why interpreted code doesn't simply read the
polling page. Or we could even simply read-protect the bytecode
dispatch tables themselves.
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-dev