RFR 8223582 [lworld] WeakReference of an inline type should throw
Roger.Riggs at oracle.com
Thu May 23 19:52:26 UTC 2019
Please review this change (for LW2) to disallow inline values from being
FinalReference, WeakReference, SoftReference, and PhantomReferences.
Since by definition there cannot be another reference to the value, the
Reference would be cleared.
Throwing an exception on construction of the ref will prevent an
on otherwise undefined behavior.
There are further notes in the issue.
More information about the valhalla-dev