Integrated: 8350636: Potential null-pointer dereference in MallocSiteTable::new_entry

Johan Sjölen jsjolen at openjdk.org
Tue Feb 25 14:33:03 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

This pull request has now been integrated.

Changeset: 62f39bd6
Author:    Johan Sjölen <jsjolen at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/62f39bd6468d1c99bb0d6af6a96972bae96a7588
Stats:     5 lines in 1 file changed: 4 ins; 0 del; 1 mod

8350636: Potential null-pointer dereference in MallocSiteTable::new_entry

Reviewed-by: dholmes

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

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


More information about the hotspot-runtime-dev mailing list