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

Refactor JVMTI CallbackInvoker to be local

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 19
    • hotspot
    • None
    • generic
    • generic

      Currently, CallbackInvoker in jvmtiTagMap.cpp is an all-static class with several global fields. It looks like it's only used in VM_HeapWalkOperation, and can probably be refactored to be local to this, and only be allocated on-demand. This would also solve the current cleanup-problem that this class suffers: after its use in the heap-walk, its state does not get cleaned up, and thus has dangling pointers and such.

            rkennke Roman Kennke
            rkennke Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: