Garbage collection does indeed obviate the need for explicit resource deallocation, most of the time. (I'll discuss some exceptions in a future column.)
大多数情况下,垃圾收集确实消除了显式资源存储单元分配(explicit resourcedeallocation)的必要(在以后的专栏中我将讨论一些例外)。
Logging GC usage is not intrusive, and so it is reasonable to enable GC logging in production by default in the event you ever need to analyze memory problems or tune the garbage collector.
记录GC使用情况并不具有干扰性,因此如果需要分析内存问题或者调优垃圾收集器,在生产环境中默认启用gc日志是值得的。
The result is that garbage collection will need to be performed in order to reclaim space in the heap.
结果是需要执行垃圾收集以便回收堆中的空间。
Aside from adding RAM, or at least ensuring that you have sufficient RAM for a 64-bit JVM, you'll also need to spend time tuning the garbage collection (GC) algorithm for the JDK in use.
除了添加RAM(或至少确保拥有64位JVM所需的足够RAM)外,还将需要花时间调整所使用的JDK的垃圾回收(GC)算法。
In addition, the need to clean up the garbage in the home, want to stay clean up yourself.
此外,家中需要清理的垃圾,要留人自己清理好。
Sanitation garbage truck not only need to carry fast cargo movement, but also to control the state of the goods in the process of moving and information recording and transmission.
环卫垃圾车不但需要承载快捷的货物移动,而且更要控制货物在移动过程中的状态以及信息的记录和传送。
Spring is a good season. 2. Then, I just take what I need. 3. She repaired the broken doll. 4. Garbage cann't be thrown in the campus. 5. It's me who are your lucky partner. 6. What you need is rest.
春天是个好季节。2。那么我只拿我所需要的东西。3。她修补了破的洋娃娃。4。在校园里不准丢垃圾。5。我就是你的幸运舞伴拉。6。你需要的就是休息。
First, you need to sort out the garbage for recycling - but you don't have much time... Then plant trees in the savannah - if your aim is good enough!
首先,你需要清理垃圾的回收-但你没有太多的时间…然后在草原种植树木-如果你的目的就足够了!
In unsafe mode, you can allocate memory on the stack, where it is not subject to garbage collection and therefore does not need to be pinned.
在不安全模式,您可以配置在堆叠上的记忆体;那里并不需要交付给记忆体回收,因此不需要固定。
In unsafe mode, you can allocate memory on the stack, where it is not subject to garbage collection and therefore does not need to be pinned.
在不安全模式,您可以配置在堆叠上的记忆体;那里并不需要交付给记忆体回收,因此不需要固定。
应用推荐