[master] RFR: Implement self-forwarding of objects that preserves header bits [v3]

Roman Kennke rkennke at openjdk.java.net
Mon Jul 12 10:49:32 UTC 2021


On Mon, 12 Jul 2021 08:46:06 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> The original code has been done that way intentionally: the changed code reloads the value from the header from memory (from what I can tell from generated code), while the original code does not, just reusing the value in the register.
> 
> Even if this is a nano-nano-optimization I would prefer to keep it as is. Some of the other changes seem to cause very similar "regressions".
> 
> (Yeah, I'm late, sorry).

I think I preserved the original behavior of re-using the already-loaded header. Notice that I added an oopDesc::forwardee(markWord m) to do that.

-------------

PR: https://git.openjdk.java.net/lilliput/pull/10


More information about the lilliput-dev mailing list