< prev index next >
src/os/solaris/vm/os_solaris.cpp
Print this page
rev 9312 : 8133023: ParallelGCThreads is not calculated correctly
Reviewed-by: tschatzl, sangheki, kbarrett
*** 286,295 ****
--- 286,305 ----
_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,4377 ****
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);
--- 4372,4381 ----
< prev index next >