* Use a releasing store to update the lockword when inflating.
* Remove the barrier following the interrupted flag update. The
mutex release that follows should have the same effect.
Change-Id: I9c8b31769e5767a9748d01278cf01be9678de2a5
thin &= LW_HASH_STATE_MASK << LW_HASH_STATE_SHIFT;
thin |= (u4)mon | LW_SHAPE_FAT;
/* Publish the updated lock word. */
- ANDROID_MEMBAR_FULL();
- obj->lock = thin;
+ android_atomic_release_store(thin, (int32_t *)&obj->lock);
}
/*
* something.
*/
thread->interrupted = true;
- ANDROID_MEMBAR_FULL();
/*
* Is the thread waiting?