Put a check in so people know not to create more than 8 memtesters.
--HG-- extra : convert_revision : 41ab297dc681b2601be1df33aba30c39f49466d8
This commit is contained in:
parent
95ca4f9d4a
commit
095d5991f5
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,8 @@ MemTest::MemTest(const string &name,
|
|||
tickEvent.schedule(0);
|
||||
|
||||
id = TESTER_ALLOCATOR++;
|
||||
if (TESTER_ALLOCATOR > 8)
|
||||
panic("False sharing memtester only allows up to 8 testers");
|
||||
|
||||
accessRetry = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue