发明名称 METHOD, PROGRAM, AND SYSTEM FOR REDUCING THE COST OF STACK SCANNING
摘要 A method for reducing the cost of stack scanning in garbage collection (GC) includes, in the GC of the first-generation heap area, registering, in a nursery object reference list prepared for each thread, one or more addresses, within each stack, which each refer to a nursery object, and updating a scanning unnecessary area starting pointer such that the addresses listed in the nursery object reference list are included in the area from the bottom of the stack to the address pointed to by the scanning unnecessary area starting pointer. The method further includes, in the next GC of the first-generation heap area, for the area from the bottom of the stack to the address pointed to by the scanning unnecessary area starting pointer, performing the GC processing on the addresses included in the nursery object reference list.
申请公布号 US2015286566(A1) 申请公布日期 2015.10.08
申请号 US201514743285 申请日期 2015.06.18
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Kawachiya Kiyokuni;Onodera Tamiya
分类号 G06F12/02 主分类号 G06F12/02
代理机构 代理人
主权项 1. A method, implemented by a computer system supporting generational garbage collection (GC), for reducing the cost of stack scanning, the method comprising: for each thread, preparing, using a hardware processor, a scanning unnecessary area starting pointer pointing to inside a stack of the thread; in a GC of a first-generation heap area, setting a value for the scanning unnecessary area starting pointer for each thread such that an area from a bottom of the stack to an address pointed to by the scanning unnecessary area starting pointer becomes an area which includes no reference to a nursery object residing in the first-generation heap area; and in a next GC of the first-generation heap area, performing stack scanning, for each thread, on only stack frames located above a stack frame pointed to by the scanning unnecessary area starting pointer.
地址 Armonk NY US