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

JVMTI lacks a few GC barriers/hooks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      generic

      Description

      In src/hotspot/share/prims/jvmtiTagMap.cpp, JvmtiTagHashmapEntry::equals(..) we need an equals barrier.

      In the same file, in the hash() function, it's converting the plain oop to an integer. The oop should better be resolved to a stable value there.

      Finally, in jvmtiExport.cpp, in JvmtiObjectAllocEventMark, we're missing an CH::obj_size() call instead of the 'raw' obj->size(), which is needed to make size reported by the callback and by GetObjectSize() consistent.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: