JDK-8339113 : AccessFlags can be u2 in metadata
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2024-08-27
  • Updated: 2024-08-29
Description
After the Klass flags are moved, AccessFlags can be accessed as an unsigned short.  A lot of assembly code in the interpreter and compiler generated code needs to be adjusted for this.
But it would save space in Metadata for this field (realigning other fields to avoid alignment gaps).