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

Missing ResourceMark in nmethod::metadata_do

    XMLWordPrintable

Details

    • b01

    Backports

      Description

        Reported here:
         https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2019-March/033111.html

        It seems that CompiledIC is a ResourceObj, that is allocated in CompiledIC_at() call, but never reclaimed locally because of the missing ResourceMark. I think there is some upper-level ResourceMark that keeps build from asserting that allocation is done without the ResourceMark, but it probably too far up to be useful for reclaiming this temporary allocation.

        This is fixed starting JDK 12 with JDK-8208677:
          http://hg.openjdk.java.net/jdk/jdk/rev/aa3bfacc912c#l4.7

        ...but we need to do the same in 11u and 8u.

        aotCompiledMethod.cpp has the ResourceMark in similar place, brought in by JDK-8206394:
         http://hg.openjdk.java.net/jdk/jdk/file/aa3bfacc912c/src/hotspot/share/aot/aotCompiledMethod.cpp#l274

        Attachments

          Issue Links

            Activity

              People

                shade Aleksey Shipilev
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: