vigna / fastutil

fastutil extends the Java™ Collections Framework by providing type-specific maps, sets, lists and queues.
Apache License 2.0
1.81k stars 199 forks source link

Does BigList use memory not managed by JVM? #286

Closed xxks-kkk closed 1 year ago

xxks-kkk commented 1 year ago

Reading the doc on BigArray (https://fastutil.di.unimi.it/docs/it/unimi/dsi/fastutil/BigArrays.html), I think BigList, which is backed by BigArray still uses on heap memory, i.e., memory managed by JVM. Do I understand correctly? I greped on the source code and didn't see keyword like sun.misc to suggest off-heap memory usage. But, reading overview page on big hash set, I notice "big hash sets provide support for sets whose size is only limited by the amount of core memory." Does core memory mean the memory used by JVM or physical memory?

Thank you!

vigna commented 1 year ago

JVM memory.