diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-01-16 21:44:11 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-01-22 01:51:37 +0300 |
commit | 880b47d35316f1a646a21e3b86e7a32eee048d6e (patch) | |
tree | b0404cc7ca93483b52632cd740e5e1b8652708e5 /src/node_messaging.h | |
parent | c78c2771da6bf5ffc64008d37548eb87abe81ad1 (diff) |
src: move MemoryInfo() for worker code to .cc files
This is a) the right thing to do anyway because these functions
can not be inlined by the compiler and b) avoids compilation warnings
in the following commit.
PR-URL: https://github.com/nodejs/node/pull/31386
Refs: https://github.com/openjs-foundation/summit/pull/240
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_messaging.h')
-rw-r--r-- | src/node_messaging.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/node_messaging.h b/src/node_messaging.h index 526158e144d..6d2410a7248 100644 --- a/src/node_messaging.h +++ b/src/node_messaging.h @@ -191,10 +191,7 @@ class MessagePort : public HandleWrap { // NULL pointer to the C++ MessagePort object is also detached. inline bool IsDetached() const; - void MemoryInfo(MemoryTracker* tracker) const override { - tracker->TrackField("data", data_); - } - + void MemoryInfo(MemoryTracker* tracker) const override; SET_MEMORY_INFO_NAME(MessagePort) SET_SELF_SIZE(MessagePort) |