Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/orderAccess.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 | 98cb887364d3 |
children | bd02caa94611 |
line wrap: on
line diff
--- a/src/share/vm/runtime/orderAccess.hpp Tue Mar 24 15:09:52 2009 -0700 +++ b/src/share/vm/runtime/orderAccess.hpp Thu Mar 26 14:31:45 2009 -0700 @@ -300,4 +300,10 @@ // In order to force a memory access, implementations may // need a volatile externally visible dummy variable. static volatile intptr_t dummy; + + private: + // This is a helper that invokes the StubRoutines::fence_entry() + // routine if it exists, It should only be used by platforms that + // don't another way to do the inline eassembly. + static void StubRoutines_fence(); };