Embedded JDK how to replace the default allocator
Guy Korland
gkorland at gmail.com
Mon Dec 14 23:08:27 UTC 2020
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.
Regards,
Guy Korland
On Sun, Dec 13, 2020 at 12:15 PM Thomas Stüfe <thomas.stuefe at gmail.com>
wrote:
> Hi Guy,
>
> What do you mean by default allocator? C-Heap? Mmap/shmat? And what OS are
> you targeting?
>
> Cheers, Thomas
>
> On Fri, Dec 11, 2020 at 9:49 PM Guy Korland <gkorland at gmail.com> wrote:
>
>> Hi,
>>
>> I'm sorry if that is not the right mailing list for such questions, please
>> point me to the right one if it's not.
>>
>> We're embedding the OpenJDK in a C application, we already managed to make
>> it work and run Java bytecode, but we are still missing one last piece, we
>> need a way to replace the default memory allocator to use our allocator.
>>
>> Is there a way to do it?
>>
>> Thanks,
>> Guy Korland
>>
>
More information about the hotspot-dev
mailing list