src/hotspot/os_cpu/windows_x86/os_windows_x86.hpp
changeset 47634 6a0c42c40cd1
parent 47216 71c04702a3d5
child 48468 7cc7de9bf4a4
equal deleted inserted replaced
47633:1c21c60f51bf 47634:6a0c42c40cd1
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    28   //
    28   //
    29   // NOTE: we are back in class os here, not win32
    29   // NOTE: we are back in class os here, not win32
    30   //
    30   //
    31 #ifdef AMD64
    31 #ifdef AMD64
    32   static jint      (*atomic_xchg_func)          (jint,      volatile jint*);
    32   static jint      (*atomic_xchg_func)          (jint,      volatile jint*);
    33   static intptr_t  (*atomic_xchg_ptr_func)      (intptr_t,  volatile intptr_t*);
    33   static intptr_t  (*atomic_xchg_long_func)     (jlong,     volatile jlong*);
    34 
    34 
    35   static jint      (*atomic_cmpxchg_func)       (jint,      volatile jint*,  jint);
    35   static jint      (*atomic_cmpxchg_func)       (jint,      volatile jint*,  jint);
    36   static jbyte     (*atomic_cmpxchg_byte_func)  (jbyte,     volatile jbyte*, jbyte);
    36   static jbyte     (*atomic_cmpxchg_byte_func)  (jbyte,     volatile jbyte*, jbyte);
    37   static jlong     (*atomic_cmpxchg_long_func)  (jlong,     volatile jlong*, jlong);
    37   static jlong     (*atomic_cmpxchg_long_func)  (jlong,     volatile jlong*, jlong);
    38 
    38 
    39   static jint      (*atomic_add_func)           (jint,      volatile jint*);
    39   static jint      (*atomic_add_func)           (jint,      volatile jint*);
    40   static intptr_t  (*atomic_add_ptr_func)       (intptr_t,  volatile intptr_t*);
    40   static intptr_t  (*atomic_add_ptr_func)       (intptr_t,  volatile intptr_t*);
    41 
    41 
    42   static jint      atomic_xchg_bootstrap        (jint,      volatile jint*);
    42   static jint      atomic_xchg_bootstrap        (jint,      volatile jint*);
    43   static intptr_t  atomic_xchg_ptr_bootstrap    (intptr_t,  volatile intptr_t*);
    43   static intptr_t  atomic_xchg_long_bootstrap   (jlong,     volatile jlong*);
    44 
    44 
    45   static jint      atomic_cmpxchg_bootstrap     (jint,      volatile jint*,  jint);
    45   static jint      atomic_cmpxchg_bootstrap     (jint,      volatile jint*,  jint);
    46   static jbyte     atomic_cmpxchg_byte_bootstrap(jbyte,     volatile jbyte*, jbyte);
    46   static jbyte     atomic_cmpxchg_byte_bootstrap(jbyte,     volatile jbyte*, jbyte);
    47 #else
    47 #else
    48 
    48