I have a lot of small ByteBuffer
s. Does Java has any strategy for garbage collection of these ByteBuffer
s?
Asked
Active
Viewed 38 times
0

SimonC
- 6,590
- 1
- 23
- 40

Yashdeep Hinge
- 382
- 2
- 14
-
1Yes, it's the normal garbage collector. – Louis Wasserman Oct 05 '16 at 19:15
-
Only the references to the bytebuffer's are normally collected – Yashdeep Hinge Oct 05 '16 at 19:19
-
This could be relevant: http://stackoverflow.com/questions/1854398/how-to-garbage-collect-a-direct-buffer-java – Jack Oct 05 '16 at 19:19
-
1Possible dupe of http://stackoverflow.com/questions/6697709/are-java-directbytebuffer-wrappers-garbage-collected – Louis Wasserman Oct 05 '16 at 19:45