Embedded JDK how to replace the default allocator

Andrew Haley aph at redhat.com
Tue Dec 15 10:50:42 UTC 2020


On 14/12/2020 23:08, Guy Korland wrote:
> I'm talking about replacing the malloc implementation, we're running on
> Linux.
> But, the tricky part is that my C application malloc should not be changed,
> only the libjvm.so when loaded embedded in my application.

Surely that's trivial: you just replace malloc() and its friends
with your replacement, and recompile.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the hotspot-dev mailing list