--- old/src/share/vm/utilities/vmError.cpp 2017-06-26 18:37:57.000000000 -0700 +++ new/src/share/vm/utilities/vmError.cpp 2017-06-26 18:37:56.000000000 -0700 @@ -278,6 +278,8 @@ st->print_cr("# maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress"); st->print_cr("# to set the Java Heap base and to place the Java Heap above 32GB virtual address."); break; + default: + break; } } st->print_cr("# This output file may be truncated or incomplete."); @@ -1313,12 +1315,14 @@ st->print_raw("[timeout occurred during error reporting in step \""); st->print_raw(_current_step_info); st->print_cr("\"] after " INT64_FORMAT " s.", - (get_current_timestamp() - _step_start_time) / TIMESTAMP_TO_SECONDS_FACTOR); + (int64_t) + ((get_current_timestamp() - _step_start_time) / TIMESTAMP_TO_SECONDS_FACTOR)); } else if (_reporting_did_timeout) { // We hit ErrorLogTimeout. Reporting will stop altogether. Let's wrap things // up, the process is about to be stopped by the WatcherThread. st->print_cr("------ Timeout during error reporting after " INT64_FORMAT " s. ------", - (get_current_timestamp() - _reporting_start_time) / TIMESTAMP_TO_SECONDS_FACTOR); + (int64_t) + ((get_current_timestamp() - _reporting_start_time) / TIMESTAMP_TO_SECONDS_FACTOR)); st->flush(); // Watcherthread is about to call os::die. Lets just wait. os::infinite_sleep();