RFR: 8299079: Better interface nmethod oop accesses [v2]
Erik Österlund
eosterlund at openjdk.org
Thu Dec 22 14:54:05 UTC 2022
> Today when oops are read from nmethods, we use the same interfacing that we would use to read any other IN_NATIVE oops. That isn't enough for generational ZGC. The nmethod oops are rather different from other IN_NATIVE oops in that they are encoded in the machine code as direct pointers. Normally, IN_NATIVE oops with generational ZGC are not direct pointers, but are colored pointered that can be converted to direct pointers by going through a load barrier. For nmethod oops, that conversion requires external knowledge from the surrounding nmethod. I propose a new NMethodAccess to interface better with the GC.
Erik Österlund has updated the pull request incrementally with one additional commit since the last revision:
Nits from David
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/11738/files
- new: https://git.openjdk.org/jdk/pull/11738/files/f9577ba8..2568b45c
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=11738&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=11738&range=00-01
Stats: 6 lines in 2 files changed: 0 ins; 2 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/11738.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11738/head:pull/11738
PR: https://git.openjdk.org/jdk/pull/11738
More information about the hotspot-dev
mailing list