[master] RFR: Load Klass from header, C1 [v11]

Aleksey Shipilev shade at openjdk.java.net
Tue Jan 11 16:57:16 UTC 2022


On Mon, 18 Oct 2021 10:23:27 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

>> src/hotspot/cpu/x86/c1_CodeStubs_x86.cpp line 311:
>> 
>>> 309:     // without messing with the stack.
>>> 310:     __ xchgptr(rax, res);
>>> 311:   }
>> 
>> I am trying to wrap my head around this in early Monday :) Is `res` guaranteed to be callee-save? I.e. does this stashing work if runtime call clobbers `res`?
>
> The actual save/restore of registers and the runtime call happens in the stub in c1_Runtime1_x86.cpp

OK, taking that one on faith :)

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

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


More information about the lilliput-dev mailing list