码迷,mamicode.com
首页 > 移动开发 > 详细

Sapphire: Copying GC Without Stopping the World

时间:2020-01-11 15:04:54      阅读:84      评论:0      收藏:0      [点我收藏+]

标签:ddr   garbage   sso   hat   rev   scale   lock   tor   pre   

https://people.cs.umass.edu/~moss/papers/jgrande-2001-sapphire.pdf

Many concurrent garbage collection (GC) algorithms have been devised, but few have been implemented and evaluated, particularly for the Java programming language. Sapphire is an algorithm we have devised for concurrent copying GC. Sapphire stresses minimizing the amount of time any given application thread may need to block to support the collector. In particular, Sapphire is intended to work well in the presence of a large number of application threads, on small- to medium-scale shared memory multiprocessors. A specific problem that Sapphire addresses is not stopping all threads while thread stacks are adjusted to account for copied objects (in GC parlance, the "flip" to the new copies). Sapphire extends previous algorithms, and is most closely related to replicating copying collection, a GC technique in which application threads observe and update primarily the old copies of objects [13]. The key innovations of Sapphire are: (1) the ability to "flip" one thread at a time (changing the thread‘s view from the old copies of objects to the new copies), as opposed to needing to stop all threads and flip them at the same time; and (2) avoiding a read barrier.

Sapphire: Copying GC Without Stopping the World

标签:ddr   garbage   sso   hat   rev   scale   lock   tor   pre   

原文地址:https://www.cnblogs.com/yuanjiangw/p/12179623.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!