On Fri, 28 Apr 2023 13:18:27 GMT, Richard Reingruber <[email protected]> wrote:
>> Martin Doerr has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Revert unintended formatting changes. Fix comment.
>
> src/hotspot/cpu/ppc/upcallLinker_ppc.cpp line 236:
>
>> 234: __ block_comment("{ receiver ");
>> 235: __ load_const_optimized(R3_ARG1, (intptr_t)receiver, R0);
>> 236: __ resolve_jobject(R3_ARG1, tmp, R31,
>> MacroAssembler::PRESERVATION_FRAME_LR_GP_FP_REGS); // kills R31
>
> As a simplification the receiver could be resolved in
> `UpcallLinker::on_entry` and returned in `JavaThread::_vm_result`.
This sounds like a nice enhancement proposal for all platforms. The register
spilling code in `resolve_jobject` can get lengthy dependent on the selected
GC. Doing it in the C code (which we call anyway above) would make the upcall
stubs smaller.
@JornVernee: What do you think about this idea?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/12708#discussion_r1189763910