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

Zero: DO_UPDATE_INSTRUCTION_COUNT should only update when relevant VM flags are set

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 8, 11, 15, 16
    • hotspot
    • b23

      Everywhere else in VM code we effectively do:

        if (CountBytecodes || TraceBytecodes || StopInterpreterAt) BytecodeCounter::...
        if (PrintBytecodeHistogram) BytecodeHistogram::...

      But not in DO_UPDATE_INSTRUCTION_COUNT macro.

      Adding these flags avoid the writes to statistics what would never be used (and those writes can even contend, afaics).

      This change drops the Linux x86_64 Zero fastdebug build time from ~18m to ~17.5m.

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

              Created:
              Updated:
              Resolved: