[crac] RFR: Report checkpoint processing to jcmd [v21]

Ilarion Nakonechnyy inakonechnyy at openjdk.org
Fri Aug 12 11:46:16 UTC 2022


On Wed, 10 Aug 2022 18:33:32 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:

>> Ilarion Nakonechnyy has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - implement checkpointRestoreLocked
>>  - Revert "java core crac corections"
>>    
>>    This reverts commit 6a2b03b77f1ee4e6d48a120a14694d8dff9dbf39.
>
> src/hotspot/os/linux/os_linux.cpp line 6272:
> 
>> 6270:     trace_cr(ostream, "Checkpoint ...");
>> 6271:     // If execution comes here, assumme that further all be ok.
>> 6272:     report_ok_to_jcmd();
> 
> Starting from this point all output should go somewhere, e.g. `tty`.

Further it goes to `tty` now: 


static int checkpoint_restore(int *shmid) {
...
  if (CRTraceStartupTime) {
    tty->print_cr("STARTUPTIME " JLONG_FORMAT " restore-native", os::javaTimeNanos());
  }

  if (info.si_code != SI_QUEUE || info.si_int < 0) {
    tty->print("JVM: invalid info for restore provided: %s", info.si_code == SI_QUEUE ? "queued" : "not queued");
    if (info.si_code == SI_QUEUE) {
      tty->print(" code %d", info.si_int);
...

-------------

PR: https://git.openjdk.org/crac/pull/10


More information about the crac-dev mailing list