发明名称 METHOD AND APPARATUS FOR FINDING BUGS RELATED TO GARBAGE COLLECTION IN A VIRTUAL MACHINE
摘要 A method and apparatus for finding bugs related to garbage collection in a virtual machine. For each possible garbage collection point in a stream of execution, a compiler in the virtual machine provides a map that specifies live pointer locations in the stack. In addition, the map identifies those locations in the stack that contain other forms of live data, such as integers. All other locations are considered "dead," i.e., no longer in use or never used. At each garbage collection point, "dead" locations in the stack are overwritten with an invalid pointer value. Because of the overwriting process, any bug in the compiler that causes a live pointer to be omitted from the map also causes the omitted pointer to be overwritten with the invalid pointer value. Regardless of whether garbage collection is actually performed at the garbage collection point where the pointer was omitted from the compiler-generated map, subsequent execution steps that reference the omitted pointer trigger an invalid pointer error. The invalid pointer error may be trapped and identified as a compiler bug related to map generation in the garbage collection process.
申请公布号 US2001013117(A1) 申请公布日期 2001.08.09
申请号 US19980153382 申请日期 1998.09.15
申请人 UNGAR DAVID 发明人 UNGAR DAVID
分类号 G06F11/07;(IPC1-7):G06F9/44 主分类号 G06F11/07
代理机构 代理人
主权项
地址