JVMTI tagged object access needs G1 pre-barrier

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • gc
    • b159
    • generic
    • generic

        JvmtiTagHashmapEntry has a bare oop member. These are weak references. Any place that allows that oop to "escape" needs the G1 pre-barrier.

        GetObjectsWithTags provides such an escape path. All other accesses to that oop appear to be "peek" operations, where the oop is locally examined without any possibility of a safepoint while it's being used. Without that barrier, use of this JVMTI function with G1 can lead to crashes.

              Assignee:
              Sangheon Kim (Inactive)
              Reporter:
              Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: