hb from the end of a constructor of an object ot the start of finilizer
winniejayclay at gmail.com
Sat Jul 12 02:27:50 UTC 2014
Hi, on the page 575 of the printed edition it says
There is a happens-before edge from the end of a constructor of an
object ot the start of finilizer (12.6) for that object.
I can't get from this definition if this applicable to the case when
I manually invoke finilize() on the object or when GC collects it
and invokes finilize() or for both?
to put it clearly, say I have class with shared non-volatile and
non-finile state. object fully intialized in the first thread, in the
second thread I invoke finilize() on this object, will I have gurantee
of shared-state visibility? and in case if JVM GC invocation?
More information about the hotspot-dev