Log level of log set 'crac' is automatically set to info before checkpoint and cannot be changed from CLI. This means debug-level messages of this tag set cannot be seen.
Moreover, disabling logging on this tag set leads to a failing assert when the first attempt to log something with this tag set is made:
```
% java -XX:CRaCCheckpointTo=cr -Xlog:crac=off Main
Before checkpoint
Feb 24, 2025 12:26:43 PM jdk.internal.crac.LoggerContainer info
INFO: Starting checkpoint
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/Users/timpushkin/Projects/crac/src/hotspot/share/logging/logDecorations.cpp:78), pid=70305, tid=19971
# assert(_decorators.is_decorator(decorator)) failed: decorator was not part of the decorator set specified at creation.
#
# JRE version: OpenJDK Runtime Environment (24.0) (slowdebug build 24-internal-adhoc.timpushkin.crac)
# Java VM: OpenJDK 64-Bit Server VM (slowdebug 24-internal-adhoc.timpushkin.crac, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/timpushkin/Projects/simple-cr/hs_err_pid70305.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
```
Moreover, disabling logging on this tag set leads to a failing assert when the first attempt to log something with this tag set is made:
```
% java -XX:CRaCCheckpointTo=cr -Xlog:crac=off Main
Before checkpoint
Feb 24, 2025 12:26:43 PM jdk.internal.crac.LoggerContainer info
INFO: Starting checkpoint
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/Users/timpushkin/Projects/crac/src/hotspot/share/logging/logDecorations.cpp:78), pid=70305, tid=19971
# assert(_decorators.is_decorator(decorator)) failed: decorator was not part of the decorator set specified at creation.
#
# JRE version: OpenJDK Runtime Environment (24.0) (slowdebug build 24-internal-adhoc.timpushkin.crac)
# Java VM: OpenJDK 64-Bit Server VM (slowdebug 24-internal-adhoc.timpushkin.crac, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/timpushkin/Projects/simple-cr/hs_err_pid70305.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
```
- caused by
-
JDK-8348934 [CRaC] Drop CRTrace VM option
-
- Resolved
-
- links to
-
Commit(crac) openjdk/crac/884d0746
-
Review(crac) openjdk/crac/205