1·When using an object pool, the allocation, initialization, collection, and finalization only occur once, reducing both the memory usage and the processing time that is required.
在使用对象池时,分配、初始化、回收和终结只发生一次,从而减少了内存使用和所需的处理时间。
2·How does it support deterministic finalization?
它是如何实现确定性终结的。
3·Not only is it difficult to code them correctly, but the timing of finalization is not deterministic, and there is no guarantee that finalizers will ever even run.
终结器不仅难以编写正确,终结的定时也是不确定的,并且不能保证终结器最终会运行。
4·The ability of a finalizer to revive an object destined for garbage collection is clearly an unintended consequence of the way that the finalization mechanism works.
终结器恢复即将被垃圾收集的能力无疑是终结机制工作方式的一种意外后果。
5·Contention for these locks from other threads, and also locks to be acquired during finalization, might occur and can result in deadlock.
其他线程可能会争用这些锁和在终结期间将获取的锁,进而导致死锁。