首页>
外国专利>
Copying and forwarding for concurrent copying garbage collection
Copying and forwarding for concurrent copying garbage collection
展开▼
机译:复制和转发并发复制垃圾收集
展开▼
页面导航
摘要
著录项
相似文献
摘要
An approach for optimizing a copying of a data object in a concurrent copying garbage collection operation is provided. In an embodiment, a source copy of the data object to be copied as part of the garbage collection operation is identified. A copying of the source copy to a target location is initiated by a primary accessing thread. This initiating of the copying includes the creation of a temporary target object header for the target object in the target location that contains an indicator set to indicate that the copying is ongoing. As the copying is occurring, the execution of any other accessing threads that are attempting to use the data object are held for as long as the indicator indicates that the copying is ongoing. Once the copying has completed, the target object header is replaced with a copy of the source object header, resetting the indicator.
展开▼