Let's make this application slightly more realistic by forcing the garbage-collectorsubsystem to be active while TaskHandler code is running. Listing 7 shows this GCStressThread class.
我们使此应用程序稍微真实一些,在运行TaskHandler代码时激活垃圾收集器子系统。
2
For most collector implementations, the allocation subsystem keeps a pool of free heap memory, consumed by the application through allocating objects and replenished by the collector through sweeping.