src/hotspot/os/linux/os_linux.cpp
changeset 51996 84743156e780
parent 51994 7577686cc9bd
child 52109 101c2b6eacbe
equal deleted inserted replaced
51995:f7babf9d1592 51996:84743156e780
   265   return (pid_t)rslt;
   265   return (pid_t)rslt;
   266 }
   266 }
   267 
   267 
   268 // Most versions of linux have a bug where the number of processors are
   268 // Most versions of linux have a bug where the number of processors are
   269 // determined by looking at the /proc file system.  In a chroot environment,
   269 // determined by looking at the /proc file system.  In a chroot environment,
   270 // the system call returns 1.  This causes the VM to act as if it is
   270 // the system call returns 1.
   271 // a single processor and elide locking (see is_MP() call).
       
   272 static bool unsafe_chroot_detected = false;
   271 static bool unsafe_chroot_detected = false;
   273 static const char *unstable_chroot_error = "/proc file system not found.\n"
   272 static const char *unstable_chroot_error = "/proc file system not found.\n"
   274                      "Java may be unstable running multithreaded in a chroot "
   273                      "Java may be unstable running multithreaded in a chroot "
   275                      "environment on Linux when /proc filesystem is not mounted.";
   274                      "environment on Linux when /proc filesystem is not mounted.";
   276 
   275