简体   繁体   中英

Allocating memory in native heap

I'm trying to consume memory from the native heap by using ByteBuffer.allocateDirect()

I can see in memory monitor that memory allocated in dalvik jvm heap instead of the native heap.

Has anybody encountered similar problem?

似乎在Android上,从Java分配的直接字节缓冲区会计入Dalvik堆: https ://www.badlogicgames.com/wordpress/ ? p = 2367

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM