(L) Prelim RFR: 8132510: Replace ThreadLocalStorage with compiler/language-based thread-local variables
david.holmes at oracle.com
Tue Nov 3 02:37:37 UTC 2015
On 2/11/2015 9:25 PM, Andrew Haley wrote:
> On 02/11/15 11:14, David Holmes wrote:
>> Depends on the platform and the exact circumstances, given the varied
>> caching and other "fast lookup" schemes previously employed (even though
>> this is slow-path code).
> It's not just the slow path: from what I remember it's called tens of
> thousands of times at startup, so this really is a worthwhile change.
I was wondering about the continuing validity of those old comments so I
added in a counter to see how often it does get called during VM startup:
_thr_current_count = 171805, main thread = 162943, other = 8862
I confess to being a little surprised. Of course there is a huge amount
of potential variance in the "other" part of the count.
More information about the hotspot-dev