From 7e7723e98f1d9d9a6f85665cc87543e7e37ac47c Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 25 Jan 2018 09:57:02 -0500 Subject: A small memory use reduction. --- node/RuntimeEnvironment.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'node/RuntimeEnvironment.hpp') diff --git a/node/RuntimeEnvironment.hpp b/node/RuntimeEnvironment.hpp index 17170718..46350b4a 100644 --- a/node/RuntimeEnvironment.hpp +++ b/node/RuntimeEnvironment.hpp @@ -53,6 +53,7 @@ public: RuntimeEnvironment(Node *n) : node(n) ,localNetworkController((NetworkController *)0) + ,rtmem((void *)0) ,sw((Switch *)0) ,mc((Multicaster *)0) ,topology((Topology *)0) @@ -73,6 +74,9 @@ public: // This is set externally to an instance of this base class NetworkController *localNetworkController; + // Memory actually occupied by Trace, Switch, etc. + void *rtmem; + /* Order matters a bit here. These are constructed in this order * and then deleted in the opposite order on Node exit. The order ensures * that things that are needed are there before they're needed. -- cgit v1.2.3