src/hotspot/share/runtime/arguments.cpp
changeset 53266 57d8566a2732
parent 53232 32c6cc430526
child 53547 9d1a788dea3d
--- a/src/hotspot/share/runtime/arguments.cpp	Sun Jan 13 17:33:26 2019 +0100
+++ b/src/hotspot/share/runtime/arguments.cpp	Sun Jan 13 16:54:01 2019 -0500
@@ -3283,11 +3283,7 @@
   memset(buf, 0, bytes_alloc);
 
   // Fill buffer
-  // Use ::read() instead of os::read because os::read()
-  // might do a thread state transition
-  // and it is too early for that here
-
-  ssize_t bytes_read = ::read(fd, (void *)buf, (unsigned)bytes_alloc);
+  ssize_t bytes_read = os::read(fd, (void *)buf, (unsigned)bytes_alloc);
   os::close(fd);
   if (bytes_read < 0) {
     FREE_C_HEAP_ARRAY(char, buf);