A small memory use reduction.

This commit is contained in:
Adam Ierymenko 2018-01-25 09:57:02 -05:00
parent 4419734a7d
commit 7e7723e98f
2 changed files with 40 additions and 17 deletions

View file

@ -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.