A new object is allocated from the end of this cache without the need to grab the heap lock, so it is very efficient.
新对象是从这个高速缓存的末端分配的,而不必获取堆锁,因此效率非常高。
Since locks are used for interthread communication, it makes sense that taking out a lock would start a critical region and that releasing the lock would end the critical region.
既然锁定用于线程间通信,那么取消锁定会开启临界区,而释放锁定会结束临界区,这是行得通的。
应用推荐