projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mspace_malloc will call into mmap if it runs out of memory... this does not play...
[model-checker.git]
/
snapshot-interface.cc
diff --git
a/snapshot-interface.cc
b/snapshot-interface.cc
index 5d160e1a837da27677bf441efcdc956e8af8a687..47fafa5b0641f8865cb279c47f08531e9cbfd4f1 100644
(file)
--- a/
snapshot-interface.cc
+++ b/
snapshot-interface.cc
@@
-93,7
+93,7
@@
static void SnapshotGlobalSegments(){
size_t len = ((uintptr_t)end - (uintptr_t)begin) / PAGESIZE;
if (len != 0)
addMemoryRegionToSnapShot(begin, len);
size_t len = ((uintptr_t)end - (uintptr_t)begin) / PAGESIZE;
if (len != 0)
addMemoryRegionToSnapShot(begin, len);
- DEBUG("%
4
5s: %18p - %18p\t%c%c%c%c\n", regionname, begin, end, r, w, x, p);
+ DEBUG("%
5
5s: %18p - %18p\t%c%c%c%c\n", regionname, begin, end, r, w, x, p);
}
}
fclose(map);
}
}
fclose(map);
@@
-123,14
+123,14
@@
int SnapshotStack::backTrackBeforeStep(int seqindex) {
return stack->index;
}
struct stackEntry *tmp=stack;
return stack->index;
}
struct stackEntry *tmp=stack;
- MYFREE(tmp);
stack=stack->next;
stack=stack->next;
+ model_free(tmp);
}
}
/** This method takes a snapshot at the given sequence number. */
void SnapshotStack::snapshotStep(int seqindex) {
}
}
/** This method takes a snapshot at the given sequence number. */
void SnapshotStack::snapshotStep(int seqindex) {
- struct stackEntry *tmp=(struct stackEntry *)
MYMALLOC
(sizeof(struct stackEntry));
+ struct stackEntry *tmp=(struct stackEntry *)
model_malloc
(sizeof(struct stackEntry));
tmp->next=stack;
tmp->index=seqindex;
tmp->snapshotid=takeSnapshot();
tmp->next=stack;
tmp->index=seqindex;
tmp->snapshotid=takeSnapshot();