These areas allow tasks to use memory without being required to block if the garbage collector needs to free memory in the heap.
如果垃圾收集器需要释放堆中的内存,则这些内存区域将允许任务使用内存而不需要中断任务。
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并为其分配一个新的槽位。
The key point is that when the garbage collector runs, it may or may not free an object that is softly reachable.
关键之处在于,垃圾收集器在运行时可能会(也可能不会)释放软可及对象。
应用推荐