RFR: 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

Thanks David!

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

PR Comment: https://git.openjdk.org/jdk/pull/23768#issuecomment-2682178275


More information about the hotspot-runtime-dev mailing list