--- old/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp 2017-07-27 17:46:41.879146745 +0200 +++ new/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp 2017-07-27 17:46:41.755146750 +0200 @@ -905,12 +905,12 @@ // until initialization is complete. // TODO - replace with .il implementation when compiler supports it. -typedef jint xchg_func_t (jint, volatile jint*); -typedef jint cmpxchg_func_t (jint, volatile jint*, jint); -typedef jlong cmpxchg_long_func_t(jlong, volatile jlong*, jlong); -typedef jint add_func_t (jint, volatile jint*); +typedef int32_t xchg_func_t (int32_t, volatile int32_t*); +typedef int32_t cmpxchg_func_t (int32_t, volatile int32_t*, int32_t); +typedef int64_t cmpxchg_long_func_t(int64_t, volatile int64_t*, int64_t); +typedef int32_t add_func_t (int32_t, volatile int32_t*); -jint os::atomic_xchg_bootstrap(jint exchange_value, volatile jint* dest) { +int32_t os::atomic_xchg_bootstrap(int32_t exchange_value, volatile int32_t* dest) { // try to use the stub: xchg_func_t* func = CAST_TO_FN_PTR(xchg_func_t*, StubRoutines::atomic_xchg_entry()); @@ -920,12 +920,12 @@ } assert(Threads::number_of_threads() == 0, "for bootstrap only"); - jint old_value = *dest; + int32_t old_value = *dest; *dest = exchange_value; return old_value; } -jint os::atomic_cmpxchg_bootstrap(jint exchange_value, volatile jint* dest, jint compare_value) { +int32_t os::atomic_cmpxchg_bootstrap(int32_t exchange_value, volatile int32_t* dest, int32_t compare_value) { // try to use the stub: cmpxchg_func_t* func = CAST_TO_FN_PTR(cmpxchg_func_t*, StubRoutines::atomic_cmpxchg_entry()); @@ -935,13 +935,13 @@ } assert(Threads::number_of_threads() == 0, "for bootstrap only"); - jint old_value = *dest; + int32_t old_value = *dest; if (old_value == compare_value) *dest = exchange_value; return old_value; } -jlong os::atomic_cmpxchg_long_bootstrap(jlong exchange_value, volatile jlong* dest, jlong compare_value) { +int64_t os::atomic_cmpxchg_long_bootstrap(int64_t exchange_value, volatile int64_t* dest, int64_t compare_value) { // try to use the stub: cmpxchg_long_func_t* func = CAST_TO_FN_PTR(cmpxchg_long_func_t*, StubRoutines::atomic_cmpxchg_long_entry()); @@ -951,13 +951,13 @@ } assert(Threads::number_of_threads() == 0, "for bootstrap only"); - jlong old_value = *dest; + int64_t old_value = *dest; if (old_value == compare_value) *dest = exchange_value; return old_value; } -jint os::atomic_add_bootstrap(jint add_value, volatile jint* dest) { +int32_t os::atomic_add_bootstrap(int32_t add_value, volatile int32_t* dest) { // try to use the stub: add_func_t* func = CAST_TO_FN_PTR(add_func_t*, StubRoutines::atomic_add_entry());