Commit 8f3fd829 authored by Robert Ricci's avatar Robert Ricci

Fixed 'memory corruption' bug - turned out not to be that at all -

when a new LAN is created, we make a new plink. Since assign is only
halfway OO, there is no constuctor for a plink to set the fixends
flag to something sensible.

Turned back on FIX_PLINK_ENDPOINTS, and 'touch' score.cc so that it
gets rebuilt.
parent 97248f31
......@@ -46,7 +46,7 @@ CXXFLAGS += -DFIND_PNODE_SEARCH -DNO_REVERT
#CXXFLAGS += -DPER_VNODE_TT -DSMART_UNMAP
# Make sure that all emulated links that are assigned to a plink have the same
# endpoints
#CXXFLAGS += -DFIX_PLINK_ENDPOINTS
CXXFLAGS += -DFIX_PLINK_ENDPOINTS
# If you're looking to turn on or off USE_OPTIMAL, its now a cmdline
# option. Use OP={0,1} on the command line at run time... :)
......
......@@ -4,6 +4,7 @@
* All rights reserved.
*/
#include "port.h"
#include <hash_map>
......
......@@ -4,6 +4,7 @@
* All rights reserved.
*/
#include "port.h"
#include <iostream.h>
......@@ -1341,6 +1342,10 @@ pvertex make_lan_node(vvertex vv)
pl->bw_used = 0;
pl->emulated = pl->nonemulated = 0;
p->switches.insert(largest_switch);
#ifdef FIX_PLINK_ENDPOINTS
pl->fixends = false;
#endif
} else {
p->name += "orphin";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment