Scalar replacement in the jvm is pretty cool, but my problem is that I don’t know an easy way to check if and where it works. Does anyone have an idea how to check whether an allocation has been replaced?
So far the only way I found is to run a stress test for the method in question with “-verbose:gc” and see if the gc runs less often.
Any better ideas?
Thanks,
Stefan