Integrated: 8344824: CDS dump crashes when member_method of a lambda proxy is null
Ioi Lam
iklam at openjdk.org
Wed Nov 27 20:12:46 UTC 2024
On Fri, 22 Nov 2024 05:42:30 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: f6d29909
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f6d29909bb5cce0a73945c9fccc9c3fa7d4804fd
Stats: 163 lines in 8 files changed: 144 ins; 4 del; 15 mod
8344824: CDS dump crashes when member_method of a lambda proxy is null
Reviewed-by: ccheung, matsaave
-------------
PR: https://git.openjdk.org/jdk/pull/22313
More information about the hotspot-runtime-dev
mailing list