BufferAllocator Round 2 - #533
Conversation
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
- add jemalloc allocator
jemalloc allocator and reflection allocator fix
Revert "jemalloc allocator and reflection allocator fix"
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
|
Looks good, however it is using tabs instead of spaces. |
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
|
@shadowislord changed to use whitespaces |
|
@empirephoenix |
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
|
LGTM |
|
Guess not.. |
|
sun.nio.ch.DirectBuffer is inaccessible in Java 1.9 but sun.misc.Cleaner is still accessible according to the JEP 260. Therefore, ReflectionAllocator would go on working if you stopped using the former but not the latter. |
|
Good to know, I personally will probably switch to the lwjgl/jogl native allocator interfaces for performance reasons :) |
Allows a flexible interface to use own Allocators.
This has two uses:
The default behavior is trying to load the old reflection based one, and Fallback to the simpler if an exception occurs. This allows to use JME in java9, while not changing established behavior.