summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/atomic.h8
-rw-r--r--runtime/class_linker.cc6
2 files changed, 0 insertions, 14 deletions
diff --git a/runtime/atomic.h b/runtime/atomic.h
index 090e56a6d9..e2a7259784 100644
--- a/runtime/atomic.h
+++ b/runtime/atomic.h
@@ -201,11 +201,6 @@ class PACKED(sizeof(T)) Atomic : public std::atomic<T> {
return this->load(std::memory_order_acquire);
}
- // Disable optimizations for Atomic::LoadJavaData on x86 devices.
- // Bug: http://b/34287931
-#if defined(DISABLE_LOAD_JAVA_DATA_OPTIMIZATIONS)
- #pragma clang optimize off
-#endif
// Word tearing allowed, but may race.
// TODO: Optimize?
// There has been some discussion of eventually disallowing word
@@ -213,9 +208,6 @@ class PACKED(sizeof(T)) Atomic : public std::atomic<T> {
T LoadJavaData() const {
return this->load(std::memory_order_relaxed);
}
-#if defined(DISABLE_LOAD_JAVA_DATA_OPTIMIZATIONS)
- #pragma clang optimize on
-#endif
// Load from memory with a total ordering.
// Corresponds exactly to a Java volatile load.
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index efbce3d245..02b26c6568 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -14,12 +14,6 @@
* limitations under the License.
*/
-// Disable optimizations for Atomic::LoadJavaData on x86 devices.
-// Bug: http://b/34287931
-#if defined(__i386__)
-#define DISABLE_LOAD_JAVA_DATA_OPTIMIZATIONS
-#endif
-
#include "class_linker.h"
#include <algorithm>