Loading... (original) (raw)

It would be very convenient to have an instance of the default value pre-allocated in the Java heap for each Value Types. This pre-allocated value could be used by vdefault, for non-initialized non-flattened value fields and the initialization of non-flattened value arrays. Having a pre-allocated default value would help avoiding some allocations and would reduce the overall memory footprint.

duplicates

Enhancement - null JDK-8182366 Value type array "default value" clean-up

relates to

Enhancement - null JDK-8190458 [MVT] C2 should use pre-allocated default value types