In the test code today, to fool the optimizer, assignment to public static variables or Reference.reachabilityFence is used to force allocation of objects.
Instead create a test library that explicitly does this and can be updated at a single place if the optimizer gets too good.
Reference.reachabilityFence seems not strong enough for some soon to come array optimizations.
Instead create a test library that explicitly does this and can be updated at a single place if the optimizer gets too good.
Reference.reachabilityFence seems not strong enough for some soon to come array optimizations.