src: move shared_ptr objects in KeyObjectData#59472
Merged
nodejs-github-bot merged 1 commit intoAug 16, 2025
Merged
Conversation
Since copying `shared_ptr` may involve costly atomic operations, explicitly move both `shared_ptr` objects that are passed to the private KeyObjectData constructor.
Collaborator
|
Review requested:
|
panva
approved these changes
Aug 14, 2025
Collaborator
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #59472 +/- ##
==========================================
- Coverage 89.87% 89.87% -0.01%
==========================================
Files 656 656
Lines 192956 192963 +7
Branches 37846 37850 +4
==========================================
+ Hits 173411 173416 +5
- Misses 12103 12114 +11
+ Partials 7442 7433 -9
🚀 New features to boost your workflow:
|
Collaborator
addaleax
approved these changes
Aug 14, 2025
Collaborator
Collaborator
|
Landed in 80fb4fe |
panva
pushed a commit
to panva/node
that referenced
this pull request
Aug 18, 2025
Since copying `shared_ptr` may involve costly atomic operations, explicitly move both `shared_ptr` objects that are passed to the private KeyObjectData constructor. PR-URL: nodejs#59472 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
targos
pushed a commit
that referenced
this pull request
Aug 21, 2025
Since copying `shared_ptr` may involve costly atomic operations, explicitly move both `shared_ptr` objects that are passed to the private KeyObjectData constructor. PR-URL: #59472 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Since copying
shared_ptrmay involve costly atomic operations when copied implicitly, explicitly move bothshared_ptrobjects that are passed to the privateKeyObjectDataconstructor.