RFR: 8278793: Interpreter(x64) intrinsify Thread.currentThread() [v2]

Robbin Ehn rehn at openjdk.java.net
Tue Dec 21 16:12:18 UTC 2021


On Tue, 21 Dec 2021 05:43:16 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Ditto what Dan said :)
> 
> Historically we haven't worried about currentThread() interpreter performance because the method is so hot during VM init that it should be quickly compiled anyway. Perhaps that has changed over time and we didn't notice. It would be interesting to see if there is any observable startup benefit here.
> 
> Thanks, David

Thanks

We call currentThread() around 600 times in interpreter during startup.
But is not noticeable, even if we are theoretically be 20us faster.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6833


More information about the hotspot-dev mailing list