Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于软实时应用程序,GC 应该通过全标记和清除来避免突发操作。需要某种增量/并发/实时方法。Squeak VM 目前是否支持它?
是的,Squeak 有一个增量 GC。甚至在 10 多年前,它就已被用于实时声音合成。
只有当可用空间变低并且增量 GC 无法回收它时,才会启动完整 GC。当对象经常被终身使用时,就会发生这种情况。根据您的应用,默认的 GC 参数可能需要调整。参见例如 setGCParameters 方法。