Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4947925

RFE: JSR163: Added JVMTI_EVENT_GARBAGE_COLLECTION_OCCURRED

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • hotspot
    • None
    • generic
    • generic


      With the restrictions on the Garbage Collection Finish event, you have to
      save a flag when it happens so that on the next JVMTI event that doesn't
      have restrictions, you can do what needs to be done, e.g. simulate class unloads,
      deal with object free's, call JNI or JVMTI functions etc...

      It would be really nice if there was a separate event that would allow
      you to do anything in it that says a GC occurred and completed, and all
      threads are running again... No restrictions, No guarantee on timing,
      just after a FINISH, and it just represents a time for cleanup/GC logic
      in an agent.

      Expectations should be limited with regards to the relationship of the
      Heap state and this event.

      -kto
      ###@###.### 2003-11-03

            Unassigned Unassigned
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: