On Thu, 27 Apr 2023 14:21:23 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:

>> This change moves the flags from AccessFlags to either ConstMethodFlags or 
>> MethodFlags, depending on whether they are set at class file parse time, 
>> which makes them essentially const, or at runtime, which makes them needing 
>> atomic access.
>> 
>> This leaves AccessFlags int size because Klass still has JVM flags that are 
>> more work to move, but this change doesn't increase Method size.  I didn't 
>> remove JVM_RECOGNIZED_METHOD_MODIFIERS with this change since there are 
>> several of these in other places, and with this change the code is benign.
>> 
>> Tested with tier1-6, and some manual verification of printing.
>
> Coleen Phillimore has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Remove bool argument from ConstMethodFlags.set function.

Marked as reviewed by dnsimon (Committer).

Thankfully all these changes only impact values read by JVMCI Java code and 
none in [Graal Java 
code](https://github.com/oracle/graal/blob/114067fc41d97e6c07f6de9bd745196d6f967ae4/compiler/src/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/GraalHotSpotVMConfig.java#L47).
 Looks good to me.

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

PR Review: https://git.openjdk.org/jdk/pull/13654#pullrequestreview-1405368377
PR Comment: https://git.openjdk.org/jdk/pull/13654#issuecomment-1527109990

Reply via email to