IP Library › Granted Patent US 7,506,317
Granted Patent B2
US 7,506,317 · App. 10/758,266 · Granted Mar 17, 2009

Method for enabling comprehensive profiling of garbage-collected memory systems

Assignee: Sun Microsystems, Inc.
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,506,317
App. No.
10/758,266
Granted
Mar 17, 2009
Kind
B2
Abstract

A method and apparatus for profiling a heap. According to the method, a flexible and comprehensive general-purpose profiling interface that uniformly accommodates a wide variety of memory allocation and garbage collection methods is used. The profiling interface, among other things, employs a set of virtual machine profiling interface events that support all known types of garbage collection methods.

Claims (34)

1. A system, comprising:

a processor;

memory; and

a virtual machine;

wherein the processor and the memory are configured to facilitate providing a virtual machine profiler interface that communicates information regarding activities of a garbage collector, and a profiler that reports the activities;

wherein the virtual machine creates a plurality of arenas within a heap to facilitate garbage collection;

wherein the profiler comprises a profiler agent for providing at least one of a request for specific types of events and information or an enablement notification of specific types of events and information; and

wherein at least one event is used to dynamically manage garbage collection in the heap, wherein said at least one event is independent of any algorithm for dynamically managing garbage collection in the heap, thereby supporting any implemented garbage collection methods.

2. A system according to claim 1 , further comprising a virtual machine, wherein the virtual machine receives, via the virtual machine profiler interface, at least one of the request or the enablement notification.

3. A system according to claim 1 , wherein the profiler reports on activities of a Mark-and-Sweep garbage collector.

4. A system according to claim 1 , wherein the profiler reports on activities of a Mark-Sweep-Compact garbage collector.

5. A system according to claim 1 , wherein the profiler reports on activities of a Two-Space-Copying garbage collector.

6. A system according to claim 1 , wherein the profiler reports on activities of a Generational garbage collector.

7. A system according to claim 1 , wherein the profiler reports on activities of a Reference-Counting garbage collector.

8. A system according to claim 1 , wherein the virtual machine profiler interface accommodates two or more profilers.

9. A method, comprising:

communicating, via a virtual machine profiler interface, information regarding activities of a garbage collector;

reporting the activities using a profiler which comprises a profiler agent;

facilitating the virtual machine profiler interface and profiler with a processor and a memory;

creating, with a virtual machine, a plurality of arenas within a heap to facilitate garbage collection;

providing, using the profiler agent, at least one of a request for specific types of events and information or an enablement notification of specific types of events and information; and

dynamically managing garbage collection in the heap using at least one event, wherein said at least one event is independent of any algorithm for dynamically managing garbage collection in the heap, thereby supporting any implemented garbage collection methods.

10. A method according to claim 9 , further comprising receiving at least one of the request or the enablement notification.

11. A method according to claim 9 , further comprising reporting activities of a Mark-and-Sweep garbage collector.

12. A method according to claim 9 , further comprising reporting activities of a Mark-Sweep-Compact garbage collector.

13. A method according to claim 9 , further comprising reporting activities of a Two-Space-Copying garbage collector.

14. A method according to claim 9 , further comprising reporting activities of a Generational garbage collector.

15. A method according to claim 9 , further comprising reporting activities of a Reference-Counting garbage collector.

16. A computer-readable storage device, comprising instructions for one or more processors to:

communicate, via a virtual machine profiler interface, information regarding activities of a garbage collector;

report the activities using a profiler comprising a profiler agent;

create, with a virtual machine, a plurality of arenas within a heap to facilitate garbage collection;

provide, using the profiler agent, at least one of a request for specific types of events and information or an enablement notification of specific types of events and information; and

dynamically manage garbage collection in the heap using at least one event, wherein said at least one event is independent of any algorithm for dynamically managing garbage collection in the heap, thereby supporting any implemented garbage collection methods.

Continuity (3)
Division 0985677900
Provisional Application 6010994500 · Nov 25, 1998
Related Publication 20040158589A1 · Aug 12, 2004