[pypy-svn] r18226 - in pypy/dist/pypy/translator/c: . src
arigo at codespeak.net
arigo at codespeak.net
Thu Oct 6 22:06:12 CEST 2005
Author: arigo
Date: Thu Oct 6 22:06:11 2005
New Revision: 18226
Modified:
pypy/dist/pypy/translator/c/gc.py
pypy/dist/pypy/translator/c/src/mem.h
Log:
Reverting this change. We really need the previous version of the settings.
Christian found a solution for Windows involving a custom version of the Boehm
DLL :-(
Modified: pypy/dist/pypy/translator/c/gc.py
==============================================================================
--- pypy/dist/pypy/translator/c/gc.py (original)
+++ pypy/dist/pypy/translator/c/gc.py Thu Oct 6 22:06:11 2005
@@ -363,6 +363,7 @@
yield '#define USING_BOEHM_GC'
def gc_startup_code(self):
+ yield 'GC_all_interior_pointers = 0;'
yield 'GC_INIT();'
Modified: pypy/dist/pypy/translator/c/src/mem.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/mem.h (original)
+++ pypy/dist/pypy/translator/c/src/mem.h Thu Oct 6 22:06:11 2005
@@ -49,10 +49,12 @@
#ifdef USING_BOEHM_GC
-#define BOEHM_MALLOC_0_0 GC_MALLOC_IGNORE_OFF_PAGE
-#define BOEHM_MALLOC_1_0 GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE
-#define BOEHM_MALLOC_0_1 GC_MALLOC_IGNORE_OFF_PAGE
-#define BOEHM_MALLOC_1_1 GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE
+#define BOEHM_MALLOC_0_0 GC_MALLOC
+#define BOEHM_MALLOC_1_0 GC_MALLOC_ATOMIC
+#define BOEHM_MALLOC_0_1 GC_MALLOC
+#define BOEHM_MALLOC_1_1 GC_MALLOC_ATOMIC
+/* #define BOEHM_MALLOC_0_1 GC_MALLOC_IGNORE_OFF_PAGE */
+/* #define BOEHM_MALLOC_1_1 GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE */
#define OP_BOEHM_ZERO_MALLOC(size, r, is_atomic, is_varsize, err) { \
r = (void*) BOEHM_MALLOC_ ## is_atomic ## _ ## is_varsize (size); \
More information about the Pypy-commit
mailing list