[jdk17u-dev] RFR: 8284760: Correct type/array element offset in LibraryCallKit::get_state_from_digest_object()

Aleksey Shipilev shade at openjdk.org
Thu Jun 29 18:15:39 UTC 2023


Clean backport to strengthen the affected path: calling `array_element_address` with `T_INT` is not correct. It is harmless for 17u now, but it breaks downstreams like Lilliput JDK 17u. While this does not fix a bug, the new code does the right thing, and it matches the code in mainline better.

Additional testing:
 - [ ] Linux x86_64 fastdebug `tier1`
 - [ ] Linux x86_64 fastdebug `tier2`
 - [ ] Linux x86_64 fastdebug `tier3`

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

Commit messages:
 - Backport 2ba5cc4163ccd944e2df917e5d617a78fa4ee75b

Changes: https://git.openjdk.org/jdk17u-dev/pull/1516/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1516&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8284760
  Stats: 22 lines in 2 files changed: 7 ins; 0 del; 15 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/1516.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/1516/head:pull/1516

PR: https://git.openjdk.org/jdk17u-dev/pull/1516


More information about the jdk-updates-dev mailing list