Skip to content

AndroidNativeBufferAllocator memory leak #1990

@Ali-RS

Description

@Ali-RS

For regular Java-managed direct buffers, JME does not need to clean them up as the GC will clean them up.

For any memory that Java is not allocating, special support (like PhantomReference) will have to be used to make sure to free the native memory.

I think until we switch to using jme3-alloc (in JME 3.7), for JME 3.6.1 we should either switch to using PrimitiveAllocator on Android or use PhantomReference in AndroidNativeBufferAllocator to free memory. (similar to the jme3-lwjgl3 buffer allocator)

Metadata

Metadata

Assignees

Labels

AndroidbugSomething that is supposed to work, but doesn't. More severe than a "defect".

Type

No type
No fields configured for issues without a type.

Projects

Status

tracked

Relationships

None yet

Development

No branches or pull requests

Issue actions