C++ Logo


Advanced search

Re: Unsynchronized placement-new

From: language.lawyer_at <language.lawyer_at_[hidden]>
Date: Tue, 20 Dec 2022 11:25:25 +0500
> Now, if the new expression that invokes placement-new involves
> initialization, then yes, that does cause a data race with other
> initializing placement-new operations on that storage. This is because
> of the initialization operations conflicting by accessing the same
> memory.

Initialization is not considered modification, thus (and because it also is not read) it is not access.

Received on 2022-12-20 06:25:31