On-stack replacement

On-stack replacement is the process of switching out code while it is being executed, and replacing it with new code (possibly because of optimization or invalidation). JRockit does not support on-stack replacement. Rather, it waits until the method in question has finished executing until exchanging it for new code. This can lead to some surprising behavior in badly written benchmarks, but turns out to be not much of an issue in "the real world".

Get Oracle JRockit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.