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

JVMTI tagged object access needs G1 pre-barrier

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • hotspot
    • gc
    • b159
    • generic
    • generic

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

                sangheki Sangheon Kim
                kbarrett Kim Barrett
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: