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

ResourceMark not declared in shenandoahRootProcessor.inline.hpp with --disable-precompiled-headers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8-shenandoah, 11-shenandoah, 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b22

      Description

      This can be triggered with --disable-precompiled-headers and --with-jvm-features=-jfr:

      ...
      /home/aoqi/jdk/src/hotspot/share/gc/shenandoah/shenandoahRootProcessor.inline.hpp: In member function 'void ShenandoahRootScanner<ITR>::roots_do(uint, OopClosure*, CLDClosure*, CodeBlobClosure*, ThreadClosure*)':
      /home/aoqi/jdk/src/hotspot/share/gc/shenandoah/shenandoahRootProcessor.inline.hpp:96:3: error: 'ResourceMark' was not declared in this scope
         ResourceMark rm;
         ^
      /home/aoqi/jdk/src/hotspot/share/gc/shenandoah/shenandoahRootProcessor.inline.hpp:96:16: error: expected ';' before 'rm'
         ResourceMark rm;
                      ^
      /home/aoqi/jdk/src/hotspot/share/gc/shenandoah/shenandoahRootProcessor.inline.hpp: In member function 'void ShenandoahRootScanner<ITR>::strong_roots_do(uint, OopClosure*, CLDClosure*, CodeBlobClosure*, ThreadClosure*)':
      /home/aoqi/jdk/src/hotspot/share/gc/shenandoah/shenandoahRootProcessor.inline.hpp:114:3: error: 'ResourceMark' was not declared in this scope
         ResourceMark rm;
      ...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aoqi Qi Ao
              Reporter:
              aoqi Qi Ao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: