RFR: 8337622: IllegalArgumentException in java.lang.reflect.Field.get [v2]

Coleen Phillimore coleenp at openjdk.org
Thu Aug 8 16:49:09 UTC 2024


On Thu, 8 Aug 2024 16:46:18 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> Make the object init_lock be an injected field in the mirror so that reflecting on componentType will not inadvertently return the init_lock.  The init_lock is a Java object and the VM holds it during class linking and uses it to set state during class initialization.
>> Tested with tier1-8.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix copyright lines.

The effect of this change is that instances of java.lang.Class will have 32 extra bits since the oop is most often compressed.  We were trying to be clever to avoid that but that resulted in this user-visible inconsistency.

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

PR Review: https://git.openjdk.org/jdk/pull/20498#pullrequestreview-2228386765


More information about the hotspot-runtime-dev mailing list