These areas allow tasks to use memory without being required to block if the garbage collector needs to free memory in the heap.
如果垃圾收集器需要释放堆中的内存,则这些内存区域将允许任务使用内存而不需要中断任务。
A generational collector is free to use a different collection strategy for different generations and perform garbage collection on the generations separately.
分代收集器对不同的代可以自由使用不同的收集策略,对各代分别进行垃圾收集。
Thread IDs are reused often, so there could be a case where a thread died without releasing the slot, and comes up and allocates a new slot before garbage collector could free it.
通常线程ID会得到重用,因此可能会出现这样的情况,即一个线程已经死亡,却没有释放相应的槽位,并在垃圾收集器释放该槽位之前,再次使用了这个线程ID并为其分配一个新的槽位。
应用推荐