Mercurial > hg > graal-jvmci-8
comparison src/os/linux/vm/os_linux.cpp @ 14391:d2907f74462e
8016586: PPC64 (part 3): basic changes for PPC64
Summary: added #includes needed for ppc64 port. Renamed _MODEL_ppc to _MODEL_ppc_32 and renamed corresponding old _ppc files to _ppc_32.
Reviewed-by: dholmes, kvn
author | goetz |
---|---|
date | Thu, 20 Jun 2013 16:30:44 -0700 |
parents | 0f03ff49c720 |
children | b5c8a61d7fa0 |
comparison
equal
deleted
inserted
replaced
14390:0f03ff49c720 | 14391:d2907f74462e |
---|---|
130 | 130 |
131 static int clock_tics_per_sec = 100; | 131 static int clock_tics_per_sec = 100; |
132 | 132 |
133 // For diagnostics to print a message once. see run_periodic_checks | 133 // For diagnostics to print a message once. see run_periodic_checks |
134 static sigset_t check_signal_done; | 134 static sigset_t check_signal_done; |
135 static bool check_signals = true;; | 135 static bool check_signals = true; |
136 | 136 |
137 static pid_t _initial_pid = 0; | 137 static pid_t _initial_pid = 0; |
138 | 138 |
139 /* Signal number used to suspend/resume a thread */ | 139 /* Signal number used to suspend/resume a thread */ |
140 | 140 |
247 static char cpu_arch[] = "amd64"; | 247 static char cpu_arch[] = "amd64"; |
248 #elif defined(ARM) | 248 #elif defined(ARM) |
249 static char cpu_arch[] = "arm"; | 249 static char cpu_arch[] = "arm"; |
250 #elif defined(PPC32) | 250 #elif defined(PPC32) |
251 static char cpu_arch[] = "ppc"; | 251 static char cpu_arch[] = "ppc"; |
252 #elif defined(PPC64) | |
253 static char cpu_arch[] = "ppc64"; | |
252 #elif defined(SPARC) | 254 #elif defined(SPARC) |
253 # ifdef _LP64 | 255 # ifdef _LP64 |
254 static char cpu_arch[] = "sparcv9"; | 256 static char cpu_arch[] = "sparcv9"; |
255 # else | 257 # else |
256 static char cpu_arch[] = "sparc"; | 258 static char cpu_arch[] = "sparc"; |
4400 | 4402 |
4401 // note: perfMemory_exit_helper atexit function may be removed in | 4403 // note: perfMemory_exit_helper atexit function may be removed in |
4402 // the future if the appropriate cleanup code can be added to the | 4404 // the future if the appropriate cleanup code can be added to the |
4403 // VM_Exit VMOperation's doit method. | 4405 // VM_Exit VMOperation's doit method. |
4404 if (atexit(perfMemory_exit_helper) != 0) { | 4406 if (atexit(perfMemory_exit_helper) != 0) { |
4405 warning("os::init2 atexit(perfMemory_exit_helper) failed"); | 4407 warning("os::init_2 atexit(perfMemory_exit_helper) failed"); |
4406 } | 4408 } |
4407 } | 4409 } |
4408 | 4410 |
4409 // initialize thread priority policy | 4411 // initialize thread priority policy |
4410 prio_init(); | 4412 prio_init(); |
4411 | 4413 |
4412 return JNI_OK; | 4414 return JNI_OK; |
4413 } | 4415 } |
4414 | 4416 |
4415 // this is called at the end of vm_initialization | 4417 // this is called at the end of vm_initialization |
4416 void os::init_3(void) | 4418 void os::init_3(void) { |
4417 { | |
4418 #ifdef JAVASE_EMBEDDED | 4419 #ifdef JAVASE_EMBEDDED |
4419 // Start the MemNotifyThread | 4420 // Start the MemNotifyThread |
4420 if (LowMemoryProtection) { | 4421 if (LowMemoryProtection) { |
4421 MemNotifyThread::start(); | 4422 MemNotifyThread::start(); |
4422 } | 4423 } |