< prev index next >

src/os/solaris/vm/os_solaris.cpp

Print this page

        

@@ -286,10 +286,20 @@
   _processors_online = sysconf(_SC_NPROCESSORS_ONLN);
   _physical_memory = (julong)sysconf(_SC_PHYS_PAGES) *
                                      (julong)sysconf(_SC_PAGESIZE);
 }
 
+
+void os::Solaris::initialize_features_info() {
+
+  initialize_system_info();
+
+  // Initialize misc. symbols as soon as possible, so we can use them
+  // if we need them.
+  misc_sym_init();
+}
+
 int os::active_processor_count() {
   int online_cpus = sysconf(_SC_NPROCESSORS_ONLN);
   pid_t pid = getpid();
   psetid_t pset = PS_NONE;
   // Are we running in a processor set or is there any processor set around?

@@ -4362,16 +4372,10 @@
   if (page_size == -1) {
     fatal("os_solaris.cpp: os::init: sysconf failed (%s)", strerror(errno));
   }
   init_page_sizes((size_t) page_size);
 
-  Solaris::initialize_system_info();
-
-  // Initialize misc. symbols as soon as possible, so we can use them
-  // if we need them.
-  Solaris::misc_sym_init();
-
   int fd = ::open("/dev/zero", O_RDWR);
   if (fd < 0) {
     fatal("os::init: cannot open /dev/zero (%s)", strerror(errno));
   } else {
     Solaris::set_dev_zero_fd(fd);
< prev index next >