调用析构函数时,将调用垃圾回收器来处理该队列。
When the destructor is called, the garbage collector is invoked to process the queue.
调用垃圾回收。
在使用默认的GC策略的情况下,IBMJVM 在耗尽所有堆之后才调用垃圾回收。
Using the default GC policy, the IBM JVM will consume the entire heap before invoking garbage collection.
在对象的生命周期期间,在将提供者和资源对象中的相应方法作为垃圾回收之前,可对其进行多次调用。
The corresponding methods on the provider and resource objects can be called multiple times during the life of the object before being made available for garbage collection.
而且,频繁进行进程外调用可能增加JVM的垃圾回收开销,因此在度量中也应寻找和考虑该因素。
Also, making frequent out-of-process calls might increase garbage collection overhead with a JVM, so look for and consider that factor as well in your measurements.
如果此过程耗时数秒,这对于异步调用而言是很常见的,而该匿名类可能在不经意间被晋升为垃圾回收器中更昂贵的1代或2代对象[3]。
If this takes several seconds, which is not uncommon for an asynchronous call, the anonymous class may be inadvertently promoted to the more expensive generation 1 or 2.
它会创建大量的内存分配调用,并需要垃圾回收器来清理。
It creates tons of memory allocation calls that require Garbage Collection to be invoked.
也就是说,如果拥有的线程可能进行触发垃圾回收的调用,请不要持有锁。
That is, do not hold a lock if the owning thread might make a call that triggers a garbage collection.
程序员无法控制何时调用析构函数,因为这是由垃圾回收器决定的。
The programmer has no control over when the destructor is called because this is determined by the garbage collector.
如果一个对象有些终结器,那么运行时只要在终结方法被调用后才对其执行垃圾回收。
The runtime cannot garbage collect objects with finalizers until after their finalization methods have been called.
当垃圾回收器发现一直没有被引用的实例时被调用。
Invoked when the garbage collector has detected that this instance is no longer reachable.
当垃圾回收器发现一个对象实例没有任何的引用与之关联,在准备执行垃圾回收之前该方法才会被调用。
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
当垃圾回收器确定不存在对该对象的更多引用时,由对象的垃圾回收器调用此方法。
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
有关防止垃圾回收的详细信息,请参见用平台调用进行互操作封送处理。
For detailed information about preventing garbage collection, see Interop Marshaling with Platform Invoke.
探查器在此调用期间不应进行阻止,因为堆栈所处的状态可能不允许执行垃圾回收,因此不能启用抢先垃圾回收。
The profiler should not block during this call because the stack may not be in a state that allows garbage collection, and therefore preemptive garbage collection cannot be enabled.
探查器在此调用期间不应进行阻止,因为堆栈所处的状态可能不允许执行垃圾回收,因此不能启用抢先垃圾回收。
The profiler should not block during this call because the stack may not be in a state that allows garbage collection, and therefore preemptive garbage collection cannot be enabled.
应用推荐