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

BlockLocationPrinter::print_location misses a ResourceMark

XMLWordPrintable

    • gc
    • 14
    • b27

        BlockLocationPrinter::print_location uses oopDesc::print_on() which expects the caller to provide a ResourceMark.

        Since BlockLocationPrinter::print_location() can be printed at arbitrary times (e.g. via MacroAssembler::stop()), it needs to provide its own ResourceMark for successful register printing.

        This is an issue since the introduction of this helper class (JDK 14).

              tschatzl Thomas Schatzl
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: