Invention Grant
- Patent Title: Method and apparatus for tracking activity of a garbage collector with a plurality of threads that operate concurrently with an application program
- Patent Title (中): 用于跟踪具有与应用程序同时操作的多个线程的垃圾收集器的活动的方法和装置
-
Application No.: US11305957Application Date: 2005-12-19
-
Publication No.: US07672983B2Publication Date: 2010-03-02
- Inventor: Antonios Printezis , David L. Detlefs
- Applicant: Antonios Printezis , David L. Detlefs
- Applicant Address: US CA Santa Clara
- Assignee: Sun Microsystems, Inc.
- Current Assignee: Sun Microsystems, Inc.
- Current Assignee Address: US CA Santa Clara
- Agency: Osha • Liang LLP
- Main IPC: G06F12/00
- IPC: G06F12/00

Abstract:
The time cost of collecting a region in a Garbage-First garbage collector is adjusted to account for concurrent thread activity. The overhead of a concurrent thread is tracked by dividing elapsed time into relatively short time “windows” and monitoring the system during those windows to determine how long that thread is scheduled to run during those windows. Using measurements of this type for each concurrent thread, the percentage of each elapsed time window dedicated to each concurrent thread is determined. Finally, by summing the percentages of elapsed time dedicated to concurrent thread activity, the cost of collecting a region can be increased by adding the overhead attributable to concurrent activity.
Public/Granted literature
Information query