RFR: 8263377: Store method handle linkers in the 'non-nmethods' heap
Dean Long
dlong at openjdk.java.net
Sat Jun 4 01:14:31 UTC 2022
On Fri, 3 Jun 2022 18:01:40 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> 8263377: Store method handle linkers in the 'non-nmethods' heap
>
> src/hotspot/share/code/codeBlob.cpp line 342:
>
>> 340: MethodHandleIntrinsicBlob* MethodHandleIntrinsicBlob::create(const methodHandle& method,
>> 341: CodeBuffer *code_buffer) {
>> 342: code_buffer->finalize_oop_references(method);
>
> Can you please explain why this is needed? (I'm a bit surprised since the constructor asserts that `total_oop_size` is 0)
>
> Thanks.
I don't think finalize_oop_references() makes sense except for nmethods. If the MH intrinsic could contain contain oops, then GC would need to be able to find and relocate them.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8760
More information about the hotspot-dev
mailing list