mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
6518907: cleanup IA64 specific code in Hotspot
Removed unused IA64 specific code Reviewed-by: twisti, kvn, dholmes
This commit is contained in:
parent
89b8658977
commit
7d8f623180
11 changed files with 171 additions and 212 deletions
|
@ -1155,13 +1155,9 @@ void os::Linux::capture_initial_stack(size_t max_size) {
|
|||
// for initial thread if its stack size exceeds 6M. Cap it at 2M,
|
||||
// in case other parts in glibc still assumes 2M max stack size.
|
||||
// FIXME: alt signal stack is gone, maybe we can relax this constraint?
|
||||
#ifndef IA64
|
||||
if (stack_size > 2 * K * K) stack_size = 2 * K * K;
|
||||
#else
|
||||
// Problem still exists RH7.2 (IA64 anyway) but 2MB is a little small
|
||||
if (stack_size > 4 * K * K) stack_size = 4 * K * K;
|
||||
#endif
|
||||
|
||||
if (stack_size > 2 * K * K IA64_ONLY(*2))
|
||||
stack_size = 2 * K * K IA64_ONLY(*2);
|
||||
// Try to figure out where the stack base (top) is. This is harder.
|
||||
//
|
||||
// When an application is started, glibc saves the initial stack pointer in
|
||||
|
@ -4367,16 +4363,12 @@ int os::Linux::safe_cond_timedwait(pthread_cond_t *_cond, pthread_mutex_t *_mute
|
|||
if (is_NPTL()) {
|
||||
return pthread_cond_timedwait(_cond, _mutex, _abstime);
|
||||
} else {
|
||||
#ifndef IA64
|
||||
// 6292965: LinuxThreads pthread_cond_timedwait() resets FPU control
|
||||
// word back to default 64bit precision if condvar is signaled. Java
|
||||
// wants 53bit precision. Save and restore current value.
|
||||
int fpu = get_fpu_control_word();
|
||||
#endif // IA64
|
||||
int status = pthread_cond_timedwait(_cond, _mutex, _abstime);
|
||||
#ifndef IA64
|
||||
set_fpu_control_word(fpu);
|
||||
#endif // IA64
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue