RFR: 8264393: JDK-8258284 introduced dangling TLH race [v3]
Robbin Ehn
rehn at openjdk.java.net
Tue Apr 6 07:33:20 UTC 2021
On Sat, 3 Apr 2021 14:52:29 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:
> Not sure how I missed this race earlier. I never originally intended for hazard pointers to be set when exiting nested ThreadsListHandles. Anyway - the problem is understood and the fix looks good.
I don't think you did, because originally we never intended them to be nested.
I still feel that the simple solution to nesting: pausing deletion on nesting, thus never changing the hazard pointer would be better (as in much simpler).
The only drawback is if there is a pathological case were we always have one thread with nested ThreadsLists (but hard to imagine).
-------------
PR: https://git.openjdk.java.net/jdk/pull/3272
More information about the hotspot-runtime-dev
mailing list