Per-Thread Stop-The-World Management for Garbage Collection
개요
출원인
International Business Machines Corporation
발명자
Michihiro Horie; Kazunori Ogata
IPC 분류
CPC 분류
Managing per-thread stop-the-world garbage collection is provided. A set of threads of a plurality of threads is transitioned from a normal thread state to a no-read-no-write thread state at a first safepoint of a pair of contiguous safepoints using a first set of thread transition code inserted in program code of an application at the first safepoint. Execution of any remaining threads of the plurality of threads having a normal thread state is suspended at the first safepoint. Stop-the-world garbage collection of a memory heap dedicated to the application is performed while allowing the set of threads of the plurality of threads having the no-read-no-write thread state to continue execution in a region within the program code between the pair of contiguous safepoints based on a special status tag of the first safepoint of the pair of contiguous safepoints.
원문 (중국어)
Managing per-thread stop-the-world garbage collection is provided. A set of threads of a plurality of threads is transitioned from a normal thread state to a no-read-no-write thread state at a first safepoint of a pair of contiguous safepoints using a first set of thread transition code inserted in program code of an application at the first safepoint. Execution of any remaining threads of the plurality of threads having a normal thread state is suspended at the first safepoint. Stop-the-world garbage collection of a memory heap dedicated to the application is performed while allowing the set of threads of the plurality of threads having the no-read-no-write thread state to continue execution in a region within the program code between the pair of contiguous safepoints based on a special status tag of the first safepoint of the pair of contiguous safepoints.