发明授权
- 专利标题: Work-stealing queues for parallel garbage collection
- 专利标题(中): 并行垃圾收集工作窃取队列
-
申请号: US09697729申请日: 2000-10-26
-
公开(公告)号: US06823351B1公开(公告)日: 2004-11-23
- 发明人: Christine H. Flood , David L. Detlefs , Nir N. Shavit , Xiaolan Zhang , Ole Agesen
- 申请人: Christine H. Flood , David L. Detlefs , Nir N. Shavit , Xiaolan Zhang , Ole Agesen
- 主分类号: G06F1730
- IPC分类号: G06F1730
摘要:
A multiprocessor, multi-program, stop-the-world garbage collection program is described. The system initially over partitions the root sources, and then iteratively employs static and dynamic work balancing. Garbage collection threads compete dynamically for the initial partitions. Work stealing double-ended queues, where contention is reduced, are described to provide dynamic load balancing among the threads. Contention is resolved by using atomic instructions. The heap is broken into a young and an old generation where parallel semi-space copying is used to collect the young generation and parallel mark-compacting the old generation. Speed and efficiency of collection is enhanced by use of card tables and linking objects, and overflow conditions are efficiently handled by linking using class pointers. A garbage collection termination employs a global status word.
信息查询