comparison src/os_cpu/linux_sparc/vm/os_linux_sparc.hpp @ 671:d0994e5bebce

6822204: volatile fences should prefer lock:addl to actual mfence instructions Reviewed-by: kvn, phh
author never
date Thu, 26 Mar 2009 14:31:45 -0700
parents d1605aabd0a1
children bd02caa94611
comparison
equal deleted inserted replaced
1:f69666374133 2:8da87c4ee9c4
27 // 27 //
28 static jint (*atomic_xchg_func) (jint, volatile jint*); 28 static jint (*atomic_xchg_func) (jint, volatile jint*);
29 static jint (*atomic_cmpxchg_func) (jint, volatile jint*, jint); 29 static jint (*atomic_cmpxchg_func) (jint, volatile jint*, jint);
30 static jlong (*atomic_cmpxchg_long_func)(jlong, volatile jlong*, jlong); 30 static jlong (*atomic_cmpxchg_long_func)(jlong, volatile jlong*, jlong);
31 static jint (*atomic_add_func) (jint, volatile jint*); 31 static jint (*atomic_add_func) (jint, volatile jint*);
32 static void (*fence_func) ();
33 32
34 static jint atomic_xchg_bootstrap (jint, volatile jint*); 33 static jint atomic_xchg_bootstrap (jint, volatile jint*);
35 static jint atomic_cmpxchg_bootstrap (jint, volatile jint*, jint); 34 static jint atomic_cmpxchg_bootstrap (jint, volatile jint*, jint);
36 static jlong atomic_cmpxchg_long_bootstrap(jlong, volatile jlong*, jlong); 35 static jlong atomic_cmpxchg_long_bootstrap(jlong, volatile jlong*, jlong);
37 static jint atomic_add_bootstrap (jint, volatile jint*); 36 static jint atomic_add_bootstrap (jint, volatile jint*);
38 static void fence_bootstrap ();
39 37
40 static void setup_fpu() {} 38 static void setup_fpu() {}
41 39
42 static bool is_allocatable(size_t bytes); 40 static bool is_allocatable(size_t bytes);
43 41