On Tue, 15 Nov 2022 19:38:26 GMT, Volodymyr Paprotski <d...@openjdk.org> wrote:
>> Ah, got it. Worth elaborating that in the comments. Otherwise, they confuse >> rather than help: >> >> // void processBlocks(byte[] input, int len, int[5] a, int[5] r) >> const Register input = rdi; //input+offset >> const Register length = rbx; >> const Register accumulator = rcx; >> const Register R = r8; > > Added a comment, hopefully less confusing. On a second thought, passing derived pointers as arguments doesn't mix well with safepoint awareness. (And this stub eventually has to become safepoint aware.) Deriving a pointer inside the stub from a base oop and offset is trivial, recovering base oop from derived pointer is hard. It doesn't mean we have to address it right now. ------------- PR: https://git.openjdk.org/jdk/pull/10582