java 直接内存回收
大家讲道理
大家讲道理 2017-04-18 10:42:38
0
3
662
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
迷茫

It is recycled through GC, but GC will only clean up the abandoned objects in direct memory when the old area is full and triggers Full GC

Ty80

System.gc(); is to notify (recommend) the JVM to recycle and run garbage collection, but it doesn’t necessarily matter whether the virtual machine will listen to you. So it is generally not recommended that you manually recycle memory. What the person above said is good!

Ty80

This, you need to have a good understanding of the algorithm of the garbage collection mechanism before you can talk about this thing

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template