void CommandLineError::print(bool verbose, const char* msg, ...) { if (verbose) { va_list listPointer; va_start(listPointer, msg); jio_vfprintf(defaultStream::error_stream(), msg, listPointer); va_end(listPointer); } }
/** * jar包共享内存操作失败时自动终结当前JVM */ static void fail(const char *msg, va_list ap) { // This occurs very early during initialization: tty is not initialized. jio_fprintf(defaultStream::error_stream(), "An error has occurred while processing the" " shared archive file.\n"); jio_vfprintf(defaultStream::error_stream(), msg, ap); jio_fprintf(defaultStream::error_stream(), "\n"); vm_exit_during_initialization("Unable to use shared archive.", NULL); }
static void fail(const char *msg, va_list ap) { // This occurs very early during initialization: tty is not initialized. jio_fprintf(defaultStream::error_stream(), "An error has occurred while processing the" " shared archive file.\n"); jio_vfprintf(defaultStream::error_stream(), msg, ap); jio_fprintf(defaultStream::error_stream(), "\n"); // Do not change the text of the below message because some tests check for it. vm_exit_during_initialization("Unable to use shared archive.", NULL); }
JNIEXPORT int jio_fprintf(FILE *fp, const char *fmt, ...) { int len; va_list args; va_start(args, fmt); len = jio_vfprintf(fp, fmt, args); va_end(args); return len; }