# Race condition behaviors

**URL:** <https://forums.swift.org/t/race-condition-behaviors/54322>\
**Category:** Using Swift\
**Tags:** concurrency\
**Created:** [December 28, 2021, 7:28am UTC](https://forums.swift.org/t/race-condition-behaviors/54322 "2021-12-28T07:28:23Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![John\_McCall](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/john_mccall/32/1351_2.png) [@John\_McCall](https://forums.swift.org/u/John_McCall)\
**Post date:** [January 4, 2022, 6:20am UTC](https://forums.swift.org/t/race-condition-behaviors/54322/22 "2022-01-04T06:20:32Z")

</div>

> [@Karl](#):
>
> Is it actually permitted? That would mean `MemoryLayout.offset(of:)` could return nil or not based on the whims of the optimiser, or the target platform.

That’s correct, it can, at least for Swift-defined types. If this isn’t documented, it should be.

---

_[View the full topic](https://forums.swift.org/t/race-condition-behaviors/54322)._
