首页>
外国专利>
Method and apparatus for tracking activity of a garbage collector with a plurality of threads that operate concurrently with an application program
Method and apparatus for tracking activity of a garbage collector with a plurality of threads that operate concurrently with an application program
展开▼
机译:用于跟踪具有与应用程序同时运行的多个线程的垃圾收集器的活动的方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
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.
展开▼