[pypy-commit] stmgc default: detail
arigo
noreply at buildbot.pypy.org
Thu Feb 27 18:36:38 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r895:fe22684ff934
Date: 2014-02-27 17:56 +0100
http://bitbucket.org/pypy/stmgc/changeset/fe22684ff934/
Log: detail
diff --git a/c7/stm/gcpage.c b/c7/stm/gcpage.c
--- a/c7/stm/gcpage.c
+++ b/c7/stm/gcpage.c
@@ -71,12 +71,12 @@
/* thread-safe: use the lock of pages.c to prevent any remapping
from occurring under our feet */
mutex_pages_lock();
+ increment_total_allocated(size + LARGE_MALLOC_OVERHEAD);
/* Allocate the object with largemalloc.c from the lower addresses. */
char *addr = _stm_large_malloc(size);
if (addr == NULL)
stm_fatalerror("not enough memory!\n");
- increment_total_allocated(size + LARGE_MALLOC_OVERHEAD);
if (addr + size > uninitialized_page_start) {
uintptr_t npages;
More information about the pypy-commit
mailing list