是否可以通过在编译时确定一些良好的收集机会来优化垃圾收集(GC)时间成本?
通常在运行时评估GC的必要性。
但是,是否有任何想法或实施来确定编译时GC机会的良好时机?例如,我们也许可以使用并发线程安全地收集垃圾,而无需锁定整个运行时。我们可能会确保某些旧对象不需要GC。
Usually the necessity of GC is evaluated at runtime.
But, is there any idea or implementation to determine good timing for GC opportunity at compile time? For example, we may be able to collect garbage safely with a concurrent thread without locking the whole runtime. We may be sure that some old objects do not need GC.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论