F
F
floppa3222020-11-12 15:56:54
Java
floppa322, 2020-11-12 15:56:54

Java: block memory allocator?

Is there any possibility in Java to create a block memory allocator ?
Initially I thought to do it through JNI, but you can’t return the pointer from there to allocate memory, you can’t give it back to deallocate.

At the same time, there are applications written in languages ​​that have a GC that would never work properly without a custom allocator. So the developers of these applications somehow solved this issue

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-11-12
@Lite_stream

https://docs.oracle.com/javase/8/docs/api/java/nio...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question