src/share/vm/runtime/atomic.hpp

changeset 548
ba764ed4b6f2
parent 435
a61af66fc99e
child 631
d1605aabd0a1
     1.1 --- a/src/share/vm/runtime/atomic.hpp	Fri Apr 11 09:56:35 2008 -0400
     1.2 +++ b/src/share/vm/runtime/atomic.hpp	Sun Apr 13 17:43:42 2008 -0400
     1.3 @@ -55,7 +55,10 @@
     1.4    static void dec_ptr(volatile void*     dest);
     1.5  
     1.6    // Performs atomic exchange of *dest with exchange_value.  Returns old prior value of *dest.
     1.7 -  static jint     xchg    (jint     exchange_value, volatile jint*     dest);
     1.8 +  static jint         xchg(jint     exchange_value, volatile jint*     dest);
     1.9 +  static unsigned int xchg(unsigned int exchange_value,
    1.10 +                           volatile unsigned int* dest);
    1.11 +
    1.12    static intptr_t xchg_ptr(intptr_t exchange_value, volatile intptr_t* dest);
    1.13    static void*    xchg_ptr(void*    exchange_value, volatile void*   dest);
    1.14  
    1.15 @@ -65,6 +68,11 @@
    1.16    static jbyte    cmpxchg    (jbyte    exchange_value, volatile jbyte*    dest, jbyte    compare_value);
    1.17    static jint     cmpxchg    (jint     exchange_value, volatile jint*     dest, jint     compare_value);
    1.18    static jlong    cmpxchg    (jlong    exchange_value, volatile jlong*    dest, jlong    compare_value);
    1.19 +
    1.20 +  static unsigned int cmpxchg(unsigned int exchange_value,
    1.21 +                              volatile unsigned int* dest,
    1.22 +                              unsigned int compare_value);
    1.23 +
    1.24    static intptr_t cmpxchg_ptr(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value);
    1.25    static void*    cmpxchg_ptr(void*    exchange_value, volatile void*     dest, void*    compare_value);
    1.26  };

mercurial