equal
deleted
inserted
replaced
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 |