RFR: 8193559: ugly DO_JAVA_THREADS macro should be replaced [v4]

Daniel D.Daugherty dcubed at openjdk.java.net
Sat Jul 31 14:41:36 UTC 2021

On Sat, 31 Jul 2021 08:11:05 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

>> The original author that added the prefetch is @fisk. He's reviewed an earlier
>> version of this fix and I'm hoping he's around to review this version.
> I agree that it should be okay without prefetch. I added it when I was running on a 4096 strand SPARC machine running over 8000 threads, and walking the list would approach 1 ms. While intuitively linear scan should be good enough, I did actually measure slight improvements with explicit prefetching, and the slight improvements did seem worth it at the time as the amount of time spent in there was non-trivial.
> Now we don't support that kind of hardware any longer, so I don't think this trick would necessarily spark as much joy any longer.
> I don't mind if we do or do not perform the prefetching. I'm okay either way.

I'm going to leave resolution of the prefetch question to a follow-up bug.
I think that discussion deserves a separate issue.


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

More information about the hotspot-gc-dev mailing list