RFR: 8365165: Zap C-heap memory at delete/free

Aleksey Shipilev shade at openjdk.org
Fri Aug 15 14:37:10 UTC 2025


On Fri, 15 Aug 2025 14:14:38 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Zap on malloc would also be useful.

I don't understand. `ZapCHeap`, as implement in current PR, zaps on malloc as well. Well, actually, it just wraps the already existing zapping code with flag guards. I used to call the flag `ZapFreeCHeap`, but then realized we do malloc/realloc side already, so it just claimed those to be a part of the same zapping feature.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26775#discussion_r2279106510


More information about the hotspot-runtime-dev mailing list