RFR: 8306851: Move Method access flags [v5]

Coleen Phillimore coleenp at openjdk.org
Fri Apr 28 19:59:53 UTC 2023


> 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:

  Fix constMethod printing.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13654/files
  - new: https://git.openjdk.org/jdk/pull/13654/files/9b05ab84..d0de72ac

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13654&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13654&range=03-04

  Stats: 6 lines in 3 files changed: 1 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/13654.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13654/head:pull/13654

PR: https://git.openjdk.org/jdk/pull/13654


More information about the serviceability-dev mailing list