[SERVER-85835] Construct boost::optional and std::unique_ptr decorations by zero-initing Created: 27/Jan/24  Updated: 07/Feb/24

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Patrick Freed Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-81848 Make decoration construction eager again Closed
Assigned Teams:
Service Arch
Participants:

 Description   

Breaking this portion out from SERVER-81848:

We can assume that zero-init is good enough for some types that aren't trivial init, such as boost::optional (safer since we control the definition) and std::unique_ptr<T> with no custom deleter (slightly more risky since the definition is provided by the toolchain, however it is hard to imagine a practical implementation where zero filling isn't correct, and our tests would explode if it wasn't)


Generated at Thu Feb 08 06:58:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.