Removing intrinsic of Thread.isInterrupted()

Aleksey Shipilev aleksey.shipilev at
Tue Feb 25 10:45:33 PST 2014

On 02/25/2014 10:23 PM, Karen Kinnear wrote:
> Performance team folks -
> I think it would be very helpful to identify any "real" benchmarks, rather than
> a small hand-rolled micro-benchmark.

I think microbenchmarks are fine to understand the performance
implications. My tests show order of magnitude difference gained by the
intrinsic. Larger workloads can delude you into believing the change is
safe, while the users who often write:

 while(Thread.currentThread().isInterrupted()) {
   // do stuff

...will have some questions for us.


More information about the hotspot-compiler-dev mailing list