mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
6822204: volatile fences should prefer lock:addl to actual mfence instructions
Reviewed-by: kvn, phh
This commit is contained in:
parent
a5396e1107
commit
134debb0ba
20 changed files with 81 additions and 183 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue