An object's finalizer will only ever be called once, even if resurrected.
This commit is contained in:
parent
36d2f33ef1
commit
211e09d844
|
@ -201,8 +201,7 @@ Predictability
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
Following this scheme, an object's finalizer is always called exactly
|
Following this scheme, an object's finalizer is always called exactly
|
||||||
once. The only exception is if an object is resurrected: the finalizer
|
once, even if it was resurrected afterwards.
|
||||||
will be called again when the object becomes unreachable again.
|
|
||||||
|
|
||||||
For CI objects, the order in which finalizers are called (step 2 above)
|
For CI objects, the order in which finalizers are called (step 2 above)
|
||||||
is undefined.
|
is undefined.
|
||||||
|
|
Loading…
Reference in New Issue