projects
/
c11tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0afac4a
)
realloc doesn't guarantee zeroing...
author
Brian Demsky
<bdemsky@uci.edu>
Thu, 1 Nov 2012 22:59:56 +0000
(15:59 -0700)
committer
Brian Demsky
<bdemsky@uci.edu>
Thu, 1 Nov 2012 22:59:56 +0000
(15:59 -0700)
clockvector.cc
patch
|
blob
|
history
diff --git
a/clockvector.cc
b/clockvector.cc
index 3363f7f4622bdd3de10baffc7c058692cbb8ac95..4dd03dc26fb7291a59ed4d1304358948bff6e062 100644
(file)
--- a/
clockvector.cc
+++ b/
clockvector.cc
@@
-44,6
+44,8
@@
void ClockVector::merge(const ClockVector *cv)
if (cv->num_threads > num_threads) {
clock = (modelclock_t *)snapshot_realloc(clock, cv->num_threads * sizeof(modelclock_t));
+ for (int i= num_threads; i < cv->num_threads; i++)
+ clock[i] = 0;
num_threads = cv->num_threads;
}