A small memory use reduction.
This commit is contained in:
parent
4419734a7d
commit
7e7723e98f
2 changed files with 40 additions and 17 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue