src/share/vm/prims/jvm.cpp

changeset 948
2328d1d3f8cf
parent 866
a45484ea312d
child 1014
0fbdb4381b99
equal deleted inserted replaced
947:db4caa99ef11 948:2328d1d3f8cf
2473 void jio_print(const char* s) { 2473 void jio_print(const char* s) {
2474 // Try to make this function as atomic as possible. 2474 // Try to make this function as atomic as possible.
2475 if (Arguments::vfprintf_hook() != NULL) { 2475 if (Arguments::vfprintf_hook() != NULL) {
2476 jio_fprintf(defaultStream::output_stream(), "%s", s); 2476 jio_fprintf(defaultStream::output_stream(), "%s", s);
2477 } else { 2477 } else {
2478 ::write(defaultStream::output_fd(), s, (int)strlen(s)); 2478 // Make an unused local variable to avoid warning from gcc 4.x compiler.
2479 size_t count = ::write(defaultStream::output_fd(), s, (int)strlen(s));
2479 } 2480 }
2480 } 2481 }
2481 2482
2482 } // Extern C 2483 } // Extern C
2483 2484

mercurial