projects
/
c11tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
755d146
)
initialize memory location first
author
weiyu
<weiyuluo1232@gmail.com>
Wed, 31 Jul 2019 20:24:55 +0000
(13:24 -0700)
committer
weiyu
<weiyuluo1232@gmail.com>
Wed, 31 Jul 2019 20:24:55 +0000
(13:24 -0700)
history.cc
patch
|
blob
|
history
diff --git
a/history.cc
b/history.cc
index deaab0be37bae9818dd053db4055bb0de5ba0bfd..c1c9edf5ae16bf9f4bd47b53333512e6e571ab31 100644
(file)
--- a/
history.cc
+++ b/
history.cc
@@
-30,6
+30,7
@@
void ModelHistory::enter_function(const uint32_t func_id, thread_id_t tid)
uint oldsize = thrd_func_list->size();
thrd_func_list->resize( id + 1 );
for (uint i = oldsize; i < id + 1; i++) {
+ new(&(*thrd_func_list)[i]) func_id_list_t();
// push 0 as a dummy function id to a void seg fault
(*thrd_func_list)[i].push_back(0);
}