Unsafe.makePrivateBuffer currently returns an inline type which allows flattening in containers and scalarization on the stack which in turn leads to loss of the larval bit and Unsafe.put* assert or potentially not having any effect. It should return an Object.
We might also want to fail at checkcast when the larval bit is set (not sure though about the cost/benefit ratio, we could as well just treat it as user error).
JDK-8239003 keeps track of the required C2 changes once this is in.
We might also want to fail at checkcast when the larval bit is set (not sure though about the cost/benefit ratio, we could as well just treat it as user error).
JDK-8239003 keeps track of the required C2 changes once this is in.
- blocks
-
JDK-8239003 [lworld] C2 should respect larval state when scalarizing
-
- Open
-
- duplicates
-
JDK-8239003 [lworld] C2 should respect larval state when scalarizing
-
- Open
-