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
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.
* 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>