Mercurial > hg > truffle
comparison src/cpu/sparc/vm/vm_version_sparc.cpp @ 6795:7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
Summary: use shorter instruction sequences for atomic add and atomic exchange when possible.
Reviewed-by: kvn, jrose
author | roland |
---|---|
date | Thu, 20 Sep 2012 16:49:17 +0200 |
parents | f99a36499b8c |
children | 3a327d0b8586 |
comparison
equal
deleted
inserted
replaced
6794:8ae8f9dd7099 | 6795:7eca5de9e0b6 |
---|---|
94 } | 94 } |
95 | 95 |
96 UseSSE = 0; // Only on x86 and x64 | 96 UseSSE = 0; // Only on x86 and x64 |
97 | 97 |
98 _supports_cx8 = has_v9(); | 98 _supports_cx8 = has_v9(); |
99 _supports_atomic_getset4 = true; // swap instruction | |
99 | 100 |
100 if (is_niagara()) { | 101 if (is_niagara()) { |
101 // Indirect branch is the same cost as direct | 102 // Indirect branch is the same cost as direct |
102 if (FLAG_IS_DEFAULT(UseInlineCaches)) { | 103 if (FLAG_IS_DEFAULT(UseInlineCaches)) { |
103 FLAG_SET_DEFAULT(UseInlineCaches, false); | 104 FLAG_SET_DEFAULT(UseInlineCaches, false); |