|
Quick Lists
|
|
Bug ID:
|
6822204
|
|
Votes
|
0
|
|
Synopsis
|
volatile fences should prefer lock:addl to actual mfence instructions
|
|
Category
|
hotspot:compiler2
|
|
Reported Against
|
|
|
Release Fixed
|
hs15(b05),
7(b54) (Bug ID:2175676)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
|
|
Submit Date
|
25-MAR-2009
|
|
Description
|
When generating code for volatile memory accesses on x86 we currently use the mfence instruction if it is available and fall back to a lock:addl [esp], 0 when it's not. For the purposes of volatile synchronization they are equivalent in power but on some processors the mfence is more expensive so we should prefer the lock:addl idiom.
Posted Date : 2009-03-25 20:08:20.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
The fix is to put the logic for using lock:addl into membar and use membar in the appropriate places. mfence should always generate mfence.
Posted Date : 2009-03-25 20:09:30.0
http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/d0994e5bebce
Posted Date : 2009-03-27 00:07:51.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |