When value types are returned as fields from compiled code, we may also return the oop if the value type is allocated. I've noticed that sometimes otherwise unused value type allocations are kept alive only by a ReturnNode. In this case, the value type allocation should be removed and a tagged klass pointer should be returned instead.
- duplicates
-
JDK-8215560 [lworld] Investigate if method handle calls can be further optimized
-
- Resolved
-