> `VarHandles.getStaticFieldFromBaseAndOffset` maps a base/offset/fieldType to 
> a static `Field`.   It's fragile to assume that the location of a static 
> field returned by `Unsafe.staticFieldBase` is a Class object.    This changes 
> the VarHandle implementation for static fields (i.e. `FieldStaticReadOnly` 
> and `FieldStaticReadWrite` classes) to include the receiver type in addition 
> to the base and offset.

Mandy Chung has updated the pull request incrementally with one additional 
commit since the last revision:

  remove the base parameter which is unused

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/12100/files
  - new: https://git.openjdk.org/jdk/pull/12100/files/d1e1f9f0..5616f777

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12100&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12100&range=00-01

  Stats: 2 lines in 2 files changed: 0 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/12100.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12100/head:pull/12100

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

Reply via email to