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

Refactor JVMTI CallbackInvoker to be local

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 19
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: