On Mon, 26 Aug 2024 23:54:22 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:

> Move JVM implementation access flags that are not specified by the classfile 
> format into Klass so we can shrink AccessFlags to u2 in a future change.
> 
> Tested with tier1-7.
> 
> NOTE: there are arm, ppc and s390 changes to this that are just a guess.  
> Also, graal changes.

src/hotspot/share/jvmci/vmStructs_jvmci.cpp line 484:

> 482:   declare_constant(JVMCINMethodData::SPECULATION_LENGTH_BITS)            
>  \
> 483:                                                                          
>  \
> 484:   declare_constant(JVM_ACC_WRITTEN_FLAGS)                                
>  \

`JVM_ACC_IS_HIDDEN_CLASS` and `JVM_ACC_IS_VALUE_BASED_CLASS` are actually used 
in the compiler (see 
[here](https://github.com/search?q=repo%3Aoracle%2Fgraal+path%3Acompiler+JVM_ACC_IS_HIDDEN_CLASS&type=code)
 and 
[there](https://github.com/search?q=repo%3Aoracle%2Fgraal+path%3Acompiler+JVM_ACC_IS_VALUE_BASED_CLASS&type=code))
 so i think `KlassFlags::_misc_is_hidden_class` and 
`KlassFlags::_misc_is_value_based_class` also need to be exposed below along 
the other 2 bits.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20719#discussion_r1736636738

Reply via email to