hotspot/src/share/vm/prims/jvm.cpp
changeset 1889 24b003a6fe46
parent 1550 be2fc37a817f
child 2105 347008ce7984
equal deleted inserted replaced
1888:bbf498fb4354 1889:24b003a6fe46
  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