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

LogCompilation cannot process log from o.r.scala.dotty.JmhDotty

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b09

      Description

      I collected a compile log for the jmh renaissance like this:

      java -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:LogFile=ren.log -jar renaissance-jmh-assembly-0.11.0.jar -f 0 -wi 8 -i 8

      It failed to process it apparently on Dotty:

      java -ea -jar target/LogCompilation-1.0-SNAPSHOT.jar -i -t ren.log

      and got

      call scopes:
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::nonPrivateMembersNamed (36 bytes) 21 0
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::computeNPMembersNamed (119 bytes) 20 0
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::collect$1 (129 bytes) 115 0
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::collect$1 (129 bytes) 48 0
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::nonPrivateMembersNamed (36 bytes) 90 0
      dotty.tools.dotc.util.LRUCache::lookup (18 bytes) 6 0
      dotty.tools.dotc.util.LRUCache::lookupNext$1 (173 bytes) 14 0
      scala.runtime.ScalaRunTime$::array_apply (217 bytes) 123 0
      scala.runtime.BoxesRunTime::boxToBoolean (5 bytes) 170 0
      java.lang.Boolean::valueOf (14 bytes) 1 738347827872820
      Looking for call site in entire tree:
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::nonPrivateMembersNamed (36 bytes) 21 0
      dotty.tools.dotc.core.SymDenotations$PackageClassDenotation::computeNPMembersNamed (128 bytes) 20 0
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::computeNPMembersNamed (119 bytes) 121 0
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::collect$1 (129 bytes) 115 0
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::collect$1 (129 bytes) 48 0
      dotty.tools.dotc.core.SymDenotations$ClassDenotation::nonPrivateMembersNamed (36 bytes) 90 0
      dotty.tools.dotc.util.LRUCache::lookup (18 bytes) 6 0
      dotty.tools.dotc.util.LRUCache::lookupNext$1 (173 bytes) 14 0
      scala.runtime.ScalaRunTime$::array_apply (217 bytes) 123 0
      scala.runtime.BoxesRunTime::boxToBoolean (5 bytes) 170 0
      java.lang.Boolean::valueOf (14 bytes) 1 738347827872820
      java.lang.Boolean::valueOf (14 bytes) bci: 1
      java.lang.Error: couldn't find call site at 5917110:15
      at com.sun.hotspot.tools.compiler.LogParser.reportInternalError(LogParser.java:589)
      at com.sun.hotspot.tools.compiler.LogParser.reportInternalError(LogParser.java:569)
      at com.sun.hotspot.tools.compiler.LogParser.endElement(LogParser.java:1267)
      at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:618)
      at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1727)
      at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2898)
      at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
      at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:541)
      at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
      at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
      at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
      at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
      at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:324)
      at com.sun.hotspot.tools.compiler.LogParser.parse(LogParser.java:652)
      at com.sun.hotspot.tools.compiler.LogParser.parse(LogParser.java:630)
      at com.sun.hotspot.tools.compiler.LogCompilation.main(LogCompilation.java:141)
      Exception in thread "main" java.lang.InternalError: only nmethods should have a null compilation, here's a class com.sun.hotspot.tools.compiler.MakeNotEntrantEvent
      at com.sun.hotspot.tools.compiler.LogParser.parse(LogParser.java:665)
      at com.sun.hotspot.tools.compiler.LogParser.parse(LogParser.java:630)
      at com.sun.hotspot.tools.compiler.LogCompilation.main(LogCompilation.java:141)

        Attachments

          Activity

            People

            Assignee:
            ecaspole Eric Caspole
            Reporter:
            ecaspole Eric Caspole
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: