RFR: 8336468: Reflection and MethodHandles should use more precise initializer checks [v2]

Aleksey Shipilev shade at openjdk.org
Mon Aug 19 09:34:29 UTC 2024


On Tue, 16 Jul 2024 22:13:55 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Aleksey Shipilev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
>> 
>>  - Merge branch 'master' into JDK-8336468-reflection-init-checks
>>  - Remove unnecessary handle-izing
>>  - Fix
>>  - Fix
>
> src/hotspot/share/runtime/reflection.cpp line 769:
> 
>> 767: 
>> 768: oop Reflection::new_method(const methodHandle& method, bool for_constant_pool_access, TRAPS) {
>> 769:   // Allow sun.reflect.ConstantPool to refer to <clinit> methods as java.lang.reflect.Methods.
> 
> Not quite related, but it's jdk.internal.reflect.ConstantPool now :)

Fixed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20192#discussion_r1721485545


More information about the hotspot-dev mailing list