# Pre-RFC: core::ptr::simulate\_realloc

**URL:** <https://internals.rust-lang.org/t/pre-rfc-core-simulate-realloc/21745>\
**Category:** libs\
**Created:** [October 22, 2024, 10:41am UTC](https://internals.rust-lang.org/t/pre-rfc-core-simulate-realloc/21745 "2024-10-22T10:41:20Z")\
**Posts on this page:** 1\
**Showing post:** 88

<div class="post-metadata">

**Author:** ![GoldsteinE](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/goldsteine/32/13212_2.png) [@GoldsteinE](https://internals.rust-lang.org/u/GoldsteinE)\
**Post date:** [November 1, 2024, 11:20pm UTC](https://internals.rust-lang.org/t/pre-rfc-core-simulate-realloc/21745/88 "2024-11-01T23:20:38Z")

</div>

For reference: IRLO thread for volatile atomics

> [@Pre-pre-RFC: Exploring API design space for volatile atomics](https://internals.rust-lang.org/t/pre-pre-rfc-exploring-api-design-space-for-volatile-atomics/19989):
>
> Continuation of [Volatile atomic operations? - help - The Rust Programming Language Forum](https://users.rust-lang.org/t/volatile-atomic-operations/103142/). C/++ atomics model allows for volatile atomic operations. They’re required when using atomics in volatile memory, e.g. when atomic is in shared memory and is used to synchronize between processes. Currently Rust doesn’t allow volatile atomics, so the only way to do volatile atomic accesses is by using inline assembly. That feels suboptimal. I see several ways to support volatile atomics in the language: J…

The last state was that I was able to make my case that volatile atomics are a concept that makes sense, but didn’t have the energy to push it further. I would be happy to see this revived and am willing to help with implementation.

---

_[View the full topic](https://internals.rust-lang.org/t/pre-rfc-core-simulate-realloc/21745)._
