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

SpinYield.report should report microseconds

XMLWordPrintable

    • b13

        Spotted here:

        ```
        void SpinYield::report(outputStream* s) const {
          ...
          if (_sleep_time.value() != 0) { // Report sleep duration, if slept.
            separator = print_separator(s, separator);
            s->print("sleep = " UINT64_FORMAT " usecs",
                     _sleep_time.milliseconds());
          }
         ...
        }
        ```

        The message says "usecs", but we get `milliseconds()`. Should get microseconds instead.

              easlan Elif Aslan
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: