A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more informative error messages on errors within mmalloc
[simgrid.git]
/
src
/
xbt
/
mmalloc
/
attach.c
diff --git
a/src/xbt/mmalloc/attach.c
b/src/xbt/mmalloc/attach.c
index
7963a46
..
bd151db
100644
(file)
--- a/
src/xbt/mmalloc/attach.c
+++ b/
src/xbt/mmalloc/attach.c
@@
-131,7
+131,7
@@
void *mmalloc_attach(int fd, void *baseaddr)
if ((mbase = mdp->morecore(mdp, sizeof(mtemp))) != NULL) {
memcpy(mbase, mdp, sizeof(mtemp));
} else {
if ((mbase = mdp->morecore(mdp, sizeof(mtemp))) != NULL) {
memcpy(mbase, mdp, sizeof(mtemp));
} else {
-
abort(
);
+
THROWF(system_error,0,"morecore failed to get some memory!"
);
}
/* Add the new heap to the linked list of heaps attached by mmalloc */
}
/* Add the new heap to the linked list of heaps attached by mmalloc */