< prev index next >

src/hotspot/share/prims/jvm.cpp

Print this page
rev 49707 : 8201649: Remove dubious call_jio_print in ostream.cpp

*** 2720,2738 **** len = jio_vfprintf(defaultStream::output_stream(), fmt, args); va_end(args); return len; } - // HotSpot specific jio method ! void jio_print(const char* s) { // Try to make this function as atomic as possible. if (Arguments::vfprintf_hook() != NULL) { ! jio_fprintf(defaultStream::output_stream(), "%s", s); } else { // Make an unused local variable to avoid warning from gcc 4.x compiler. ! size_t count = ::write(defaultStream::output_fd(), s, (int)strlen(s)); } } } // Extern C --- 2720,2737 ---- len = jio_vfprintf(defaultStream::output_stream(), fmt, args); va_end(args); return len; } // HotSpot specific jio method ! void jio_print(const char* s, size_t len) { // Try to make this function as atomic as possible. if (Arguments::vfprintf_hook() != NULL) { ! jio_fprintf(defaultStream::output_stream(), "%.*s", len, s); } else { // Make an unused local variable to avoid warning from gcc 4.x compiler. ! size_t count = ::write(defaultStream::output_fd(), s, (int)len); } } } // Extern C
< prev index next >