equal
deleted
inserted
replaced
397 |
397 |
398 // Before querying the stack page size, make sure we are not running as primordial |
398 // Before querying the stack page size, make sure we are not running as primordial |
399 // thread (because primordial thread's stack may have different page size than |
399 // thread (because primordial thread's stack may have different page size than |
400 // pthread thread stacks). Running a VM on the primordial thread won't work for a |
400 // pthread thread stacks). Running a VM on the primordial thread won't work for a |
401 // number of reasons so we may just as well guarantee it here. |
401 // number of reasons so we may just as well guarantee it here. |
402 guarantee0(!os::Aix::is_primordial_thread()); |
402 guarantee0(!os::is_primordial_thread()); |
403 |
403 |
404 // Query pthread stack page size. Should be the same as data page size because |
404 // Query pthread stack page size. Should be the same as data page size because |
405 // pthread stacks are allocated from C-Heap. |
405 // pthread stacks are allocated from C-Heap. |
406 { |
406 { |
407 int dummy = 0; |
407 int dummy = 0; |
3446 |
3446 |
3447 clock_tics_per_sec = sysconf(_SC_CLK_TCK); |
3447 clock_tics_per_sec = sysconf(_SC_CLK_TCK); |
3448 |
3448 |
3449 init_random(1234567); |
3449 init_random(1234567); |
3450 |
3450 |
3451 // Main_thread points to the aboriginal thread. |
3451 // _main_thread points to the thread that created/loaded the JVM. |
3452 Aix::_main_thread = pthread_self(); |
3452 Aix::_main_thread = pthread_self(); |
3453 |
3453 |
3454 initial_time_count = os::elapsed_counter(); |
3454 initial_time_count = os::elapsed_counter(); |
3455 |
3455 |
3456 os::Posix::init(); |
3456 os::Posix::init(); |
3993 } else { |
3993 } else { |
3994 trcVerbose("Could not open pause file '%s', continuing immediately.", filename); |
3994 trcVerbose("Could not open pause file '%s', continuing immediately.", filename); |
3995 } |
3995 } |
3996 } |
3996 } |
3997 |
3997 |
3998 bool os::Aix::is_primordial_thread() { |
3998 bool os::is_primordial_thread(void) { |
3999 if (pthread_self() == (pthread_t)1) { |
3999 if (pthread_self() == (pthread_t)1) { |
4000 return true; |
4000 return true; |
4001 } else { |
4001 } else { |
4002 return false; |
4002 return false; |
4003 } |
4003 } |