finalizers

终结器

常用释义

词性释义

终结器
例句
  • 全部
Likewise, finalizers are normally processed as a background task, so their cost is usually amortized across the system's idle time.
同样,终结通常是后台任务,所以它们常常在系统的空闲时间执行。
仔细检查终结器,确保即使不运行这些它们也不会泄漏重要的操作系统资源。
The finalizers are called on objects that are no longer live during the same garbage collection pass .
将对在同一垃圾回收传递期间不再活动的对象调用终结器。
If you see objects queued for finalization in the verbose GC logs, try to rewrite the application to eliminate the use of finalizers.
如果在verboseGC日志中看到等待收尾的对象,那么请尝试重写应用程序以消除收尾器的使用。
不要依赖于终结器作为释放资源的主要方式。
There are a number of reasons, foremost of which is that finalizers are very tricky to write correctly (and very easy to write incorrectly).
原因有很多,最重要的一个原因是,终结器很难正确编写(并且很容易编写错)。
在使用终结器(finalizer)来创建对象时,其可能会给Java代码带来漏洞。
Finalizers have a significant performance cost, and they are not guaranteed to run in a predictable amount of time (or even at all).
Finalizer需要牺牲很多性能,并且它们不能(甚至完全不能)保证在预计的时间段运行。
拥有参数的方法不是类终结者(实际上,一个规则应当将这些报告为非法的)。
注意,要求终结器的对象会在内存中多停留一个额外的周期。