Any thoughts on extending inline classes to allow for multiple fields, where these would render as immutable objects in the JVM, but as proper pass by value and return by value stack frames in the native build? If / when the Java team eventually delivers value types in the JVM, the JVM target can be modified.
I have many small objects that get created at high frequency in the work I do. For now I have to use object pooling to get reasonable performance, but for the most part these could be value types.