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.
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.
- relates to
-
JDK-8208297 Allow printing of taskqueue stats if compiled in in product builds
-
- Resolved
-