在整个启动过程中,CVM创建和初始化这些全局锁定。
During the bootstrapping process, CVM creates and initializes these global locks.
因为垃圾收集器线程和写入者线程可能同时尝试修改全局列表,所以同样也需要使用某种锁定机制。
Since both the garbage collector thread and the writer thread can try to modify the global list at the same time, some kind of locking mechanism also has to be used.
为了帮助实现互斥锁分配和锁定时间的最小化,JVM管理一个全局锁缓存和一个单线程锁缓存,其中每个缓存包含了未分配的 pthread_mutex。
To help minimize mutex allocation and locking time, the JVM manages a global lock cache and a per-thread lock cache where each cache contains unallocated pthread_mutexes.
非锁定程序代码收到一个为全局更新保留锁定的请求。
A non locker code got a request to reserve the lock for making global updates.
非锁定程序代码收到一个为全局更新保留锁定的请求。
A non locker code got a request to reserve the lock for making global updates.
应用推荐