> Currently, the access flags in core reflection are parsed through a central > factory that dispatches through ReflectionFactory, which examines the > location plus the class file format version, so that if a Method has STRICT, > we call AccessFlag.maskToAccessFlag with the right class file format version > so we do not fail on encountering STRICT. > > After recent studies in project Valhalla, we noticed that Hotspot has a > uniform representation of access flags for all class file versions. This > means that if we can avoid passing the ClassFileVersion complexities and just > parse based on the uniform representation Hotspot recognizes. > > This change requires moving the AccessFlagSet to jdk.internal so it could be > accessed by parsers. But we can remove the JavaLangAccess backdoor to fetch > the class file versions. > > Also see the companion Valhalla PR: > https://github.com/openjdk/valhalla/pull/2209
Chen Liang has updated the pull request incrementally with one additional commit since the last revision: Copyright years ------------- Changes: - all: https://git.openjdk.org/jdk/pull/30248/files - new: https://git.openjdk.org/jdk/pull/30248/files/0e195a09..99a6ffd6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=30248&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=30248&range=00-01 Stats: 6 lines in 6 files changed: 0 ins; 0 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/30248.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30248/head:pull/30248 PR: https://git.openjdk.org/jdk/pull/30248
