projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
042d2f1
)
Increase size of bootstrap bytes as some Linux distributions need more space.
author
bdemsky
<bdemsky@uci.edu>
Thu, 17 Dec 2015 08:37:52 +0000
(
00:37
-0800)
committer
bdemsky
<bdemsky@uci.edu>
Thu, 17 Dec 2015 08:37:52 +0000
(
00:37
-0800)
mymemory.cc
patch
|
blob
|
history
diff --git
a/mymemory.cc
b/mymemory.cc
index 9e05c369235dadb077b6d09b1cfb7b2ece92180f..4182e094e5251c1a8efedbe8a92c232c012f13f3 100644
(file)
--- a/
mymemory.cc
+++ b/
mymemory.cc
@@
-124,7
+124,7
@@
void model_free(void *ptr)
/** Bootstrap allocation. Problem is that the dynamic linker calls require
* calloc to work and calloc requires the dynamic linker to work. */
/** Bootstrap allocation. Problem is that the dynamic linker calls require
* calloc to work and calloc requires the dynamic linker to work. */
-#define BOOTSTRAPBYTES
4096
+#define BOOTSTRAPBYTES
131072
char bootstrapmemory[BOOTSTRAPBYTES];
size_t offset = 0;
char bootstrapmemory[BOOTSTRAPBYTES];
size_t offset = 0;
@@
-134,7
+134,7
@@
void * HandleEarlyAllocationRequest(size_t sz)
sz = (sz + 7) & ~7;
if (sz > (BOOTSTRAPBYTES-offset)) {
sz = (sz + 7) & ~7;
if (sz > (BOOTSTRAPBYTES-offset)) {
- model_print("OUT OF BOOTSTRAP MEMORY\n");
+ model_print("OUT OF BOOTSTRAP MEMORY
. Increase the size of BOOTSTRAPBYTES in mymemory.cc
\n");
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}