GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: annotate BaseObjects in the heap snapshots correctly · nodejs/node@cfb39b9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • base_object-inl.h
    • base_object.cc
    • base_object.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/base_object-inl.h‎

Copy file name to clipboardExpand all lines: src/base_object-inl.h
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ bool BaseObject::IsWeakOrDetached() const {
125125
return pd->wants_weak_jsobj || pd->is_detached;
126126
}
127127

128-
v8::EmbedderGraph::Node::Detachedness BaseObject::GetDetachedness() const {
129-
return IsWeakOrDetached() ? v8::EmbedderGraph::Node::Detachedness::kDetached
130-
: v8::EmbedderGraph::Node::Detachedness::kUnknown;
131-
}
132-
133128
template <int Field>
134129
void BaseObject::InternalFieldGet(
135130
const v8::FunctionCallbackInfo<v8::Value>& args) {
Collapse file

‎src/base_object.cc‎

Copy file name to clipboardExpand all lines: src/base_object.cc
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ Local<Object> BaseObject::WrappedObject() const {
161161
return object();
162162
}
163163

164-
bool BaseObject::IsRootNode() const {
165-
return !persistent_handle_.IsWeak();
166-
}
167-
168164
bool BaseObject::IsNotIndicativeOfMemoryLeakAtExit() const {
169165
return IsWeakOrDetached();
170166
}
Collapse file

‎src/base_object.h‎

Copy file name to clipboardExpand all lines: src/base_object.h
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ class BaseObject : public MemoryRetainer {
105105
// to it anymore.
106106
inline bool IsWeakOrDetached() const;
107107

108-
inline v8::EmbedderGraph::Node::Detachedness GetDetachedness() const override;
109-
110108
// Utility to create a FunctionTemplate with one internal field (used for
111109
// the `BaseObject*` pointer) and a constructor that initializes that field
112110
// to `nullptr`.
@@ -192,7 +190,6 @@ class BaseObject : public MemoryRetainer {
192190

193191
private:
194192
v8::Local<v8::Object> WrappedObject() const override;
195-
bool IsRootNode() const override;
196193
void DeleteMe();
197194

198195
// persistent_handle_ needs to be at a fixed offset from the start of the

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.