6822204: volatile fences should prefer lock:addl to actual mfence instructions

Reviewed-by: kvn, phh
This commit is contained in:
Tom Rodriguez 2009-03-26 14:31:45 -07:00
parent a5396e1107
commit 134debb0ba
20 changed files with 81 additions and 183 deletions

View file

@ -300,4 +300,10 @@ class OrderAccess : AllStatic {
// 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();
};