Merge "Fix potential race condition."

am: 61fc364601

Change-Id: I5f1d1748b53bd909800d72a91423686cb9a7a2e9
This commit is contained in:
Christopher Ferris 2019-06-20 14:25:32 -07:00 committed by android-build-merger
commit 394faff80c

View file

@ -300,7 +300,7 @@ MapInfo::~MapInfo() {
std::string MapInfo::GetBuildID() {
uintptr_t id = build_id.load();
if (build_id != 0) {
if (id != 0) {
return *reinterpret_cast<std::string*>(id);
}