Invention Grant
US07730457B2 System for detecting program phases with periodic call-stack sampling during garbage collection
失效
用于在垃圾回收期间定期进行调用堆栈采样来检测程序阶段的系统
- Patent Title: System for detecting program phases with periodic call-stack sampling during garbage collection
- Patent Title (中): 用于在垃圾回收期间定期进行调用堆栈采样来检测程序阶段的系统
-
Application No.: US12104987Application Date: 2008-04-17
-
Publication No.: US07730457B2Publication Date: 2010-06-01
- Inventor: Stephen J. Fink , David P. Grove
- Applicant: Stephen J. Fink , David P. Grove
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Michael J. Buchenhorner; Vazken Alexanian
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F12/00

Abstract:
A system for associating a phase with an activation of a computer program that supports garbage collection include: a plurality of stacks, each stack including at least one stack frame that includes an activation count; and a processor with logic for performing steps of: zeroing the activation count whenever the program creates a new stack frame and after garbage collection is performed; determining whether an interval has transpired during program execution; examining each stack frame's content and incrementing the activation count for each frame of the stacks once the interval has transpired; detecting the phase whose activation count is non-zero and associating the phase with the activation; and ensuring that when the phase ends, an action is immediately performed.Detecting phases in a running computer program, creates an activation count associated with each stack frame. The activation count is zeroed whenever a new frame is created in a stack and incremented for each frame encountered during periodic intervals. A phase is detected with an activation whose activation count is non-zero.
Public/Granted literature
- US20080215649A1 SYSTEM FOR DETECTING PROGRAM PHASES WITH PERIODIC CALL-STACK SAMPLING DURING GARBAGE COLLECTION Public/Granted day:2008-09-04
Information query