src/os_cpu/windows_x86/vm/os_windows_x86.cpp

changeset 1106
d0994e5bebce
parent 772
9ee9cf798b59
child 1279
bd02caa94611
     1.1 --- a/src/os_cpu/windows_x86/vm/os_windows_x86.cpp	Tue Mar 24 15:09:52 2009 -0700
     1.2 +++ b/src/os_cpu/windows_x86/vm/os_windows_x86.cpp	Thu Mar 26 14:31:45 2009 -0700
     1.3 @@ -196,7 +196,6 @@
     1.4  typedef jlong     cmpxchg_long_func_t    (jlong,    volatile jlong*, jlong);
     1.5  typedef jint      add_func_t             (jint,     volatile jint*);
     1.6  typedef intptr_t  add_ptr_func_t         (intptr_t, volatile intptr_t*);
     1.7 -typedef void      fence_func_t           ();
     1.8  
     1.9  #ifdef AMD64
    1.10  
    1.11 @@ -292,27 +291,11 @@
    1.12    return (*dest) += add_value;
    1.13  }
    1.14  
    1.15 -void os::fence_bootstrap() {
    1.16 -  // try to use the stub:
    1.17 -  fence_func_t* func = CAST_TO_FN_PTR(fence_func_t*, StubRoutines::fence_entry());
    1.18 -
    1.19 -  if (func != NULL) {
    1.20 -    os::fence_func = func;
    1.21 -    (*func)();
    1.22 -    return;
    1.23 -  }
    1.24 -  assert(Threads::number_of_threads() == 0, "for bootstrap only");
    1.25 -
    1.26 -  // don't have to do anything for a single thread
    1.27 -}
    1.28 -
    1.29 -
    1.30  xchg_func_t*         os::atomic_xchg_func         = os::atomic_xchg_bootstrap;
    1.31  xchg_ptr_func_t*     os::atomic_xchg_ptr_func     = os::atomic_xchg_ptr_bootstrap;
    1.32  cmpxchg_func_t*      os::atomic_cmpxchg_func      = os::atomic_cmpxchg_bootstrap;
    1.33  add_func_t*          os::atomic_add_func          = os::atomic_add_bootstrap;
    1.34  add_ptr_func_t*      os::atomic_add_ptr_func      = os::atomic_add_ptr_bootstrap;
    1.35 -fence_func_t*        os::fence_func               = os::fence_bootstrap;
    1.36  
    1.37  #endif // AMD64
    1.38  

mercurial