Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
http2: use custom BaseObject smart pointers
Refs: nodejs/quic#141 Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: #30374 Refs: nodejs/quic#149 Refs: nodejs/quic#165 Reviewed-By: David Carlier <devnexen@gmail.com>
- Loading branch information
Showing
with
27 additions
and 34 deletions.
- +0 −4 src/base_object-inl.h
- +0 −1 src/base_object.h
- +18 −20 src/node_http2.cc
- +9 −9 src/node_http2.h
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -63,10 +63,6 @@ BaseObject::~BaseObject() { | ||
| } | ||
| } | ||
|
|
||
| void BaseObject::Detach() { | ||
| CHECK_GT(pointer_data()->strong_ptr_count, 0); | ||
| pointer_data()->is_detached = true; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -97,7 +97,6 @@ class BaseObject : public MemoryRetainer { | ||
| inline void Detach(); | ||
|
|
||
| protected: | ||
| virtual inline void OnGCCollect(); | ||
|
|
||
| private: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters