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

Enabling TASK_STATS_ONLY filters out just enabled messages anyway

XMLWordPrintable

    • gc
    • b115

      When TASK_STATS_ONLY is enabled, we collect some statistics about the efficiency of the task queues while copying objects.

      By default the code is only enabled with debug builds, and compiled out in non-product builds.

      When enabling TASK_STATS_ONLY in product builds manually, there will still be no messages available: the code that prints the messages exits is not in develop mode.
      This is an unnecessary extra hurdle to get these statistics: if you enable them manually you are typically aware of the costs, and do not want to change more code than necessary.
      The cost of this change is an additional if-check per GC in non-product builds.

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

              Created:
              Updated:
              Resolved: