RFR: 8344824: CDS dump crashes when member_method of a lambda proxy is null [v2]

Ioi Lam iklam at openjdk.org
Sat Nov 23 00:27:41 UTC 2024


> Since [JDK-8335583](https://bugs.openjdk.org/browse/JDK-8335583), we encode 64-bit pointers used by `RunTimeLambdaProxyClassKey` into 32-bit offsets. However, we didn't handle the cases where some of the pointers could be null.
> 
> In this PR, I have added an `or_null` variant of the functions that deal with pointer-to-offset encoding. The `or_null` variant allows an `nullptr` to be encoded with the 32-bit value of `0`.
> 
> I also renamed some of the functions to improve readability.

Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:

  Excluded runtime/cds/appcds/LambdaInvokeVirtual.java from hotspot_appcds_dynamic test group

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22313/files
  - new: https://git.openjdk.org/jdk/pull/22313/files/e335cf21..6d855879

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

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/22313.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22313/head:pull/22313

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


More information about the hotspot-runtime-dev mailing list