hg: tsan/dev: Don't mark finalizers as racy due to running in a different thread
aeubanks at google.com
aeubanks at google.com
Thu Sep 12 20:32:54 UTC 2019
Changeset: ee18163ecd60
Author: aeubanks
Date: 2019-09-03 14:30 -0700
URL: https://hg.openjdk.java.net/tsan/dev/rev/ee18163ecd60
Don't mark finalizers as racy due to running in a different thread
"There is a happens-before edge from the end of a constructor of an object to the start of a finalizer for that object."
This change is too coarse and will have false negatives, but this is a relatively simple solution that gets rid of false positives.
! make/hotspot/symbols/symbols-unix
! src/hotspot/share/include/jvm.h
! src/hotspot/share/prims/jvm.cpp
! src/hotspot/share/utilities/macros.hpp
! src/java.base/share/classes/java/lang/ref/Finalizer.java
+ src/java.base/share/native/libjava/Finalizer.c
+ test/hotspot/jtreg/tsan/NonRacyFinalizerLoopTest.java
More information about the tsan-dev
mailing list