hotspot/src/os/linux/vm/os_linux.cpp
changeset 4493 9204129f065e
parent 4487 de1359156181
child 5085 4f0c435f8c3c
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Mon Dec 14 13:26:29 2009 -0700
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Wed Dec 16 12:54:49 2009 -0500
@@ -223,8 +223,8 @@
                      "environment on Linux when /proc filesystem is not mounted.";
 
 void os::Linux::initialize_system_info() {
-  _processor_count = sysconf(_SC_NPROCESSORS_CONF);
-  if (_processor_count == 1) {
+  set_processor_count(sysconf(_SC_NPROCESSORS_CONF));
+  if (processor_count() == 1) {
     pid_t pid = os::Linux::gettid();
     char fname[32];
     jio_snprintf(fname, sizeof(fname), "/proc/%d", pid);
@@ -236,7 +236,7 @@
     }
   }
   _physical_memory = (julong)sysconf(_SC_PHYS_PAGES) * (julong)sysconf(_SC_PAGESIZE);
-  assert(_processor_count > 0, "linux error");
+  assert(processor_count() > 0, "linux error");
 }
 
 void os::init_system_properties_values() {