RFR: 8350636: Potential null-pointer dereference in MallocSiteTable::new_entry
David Holmes
dholmes at openjdk.org
Tue Feb 25 10:01:08 UTC 2025
On Tue, 25 Feb 2025 09:32:50 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
> Hi,
>
> This fixes a potential null pointer dereference in case of OOM. We return `nullptr` instead of `p` because I didn't feel like casting `p` from `void*` to `MallocSiteHashtableEntry*`.
>
> I believe that this is a trivial PR, and I would appreciate it if a reviewer agrees!
>
> Thanks,
> Johan
LGTM. Trivial? hmmm okay.
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/23768#pullrequestreview-2640416785
More information about the hotspot-runtime-dev
mailing list