[pypy-commit] pypy reverse-debugger: Revert the changes to the boehm API: it's still possible to find

arigo pypy.commits at gmail.com
Wed Aug 24 14:03:41 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: reverse-debugger
Changeset: r86508:91697c0a6b45
Date: 2016-08-24 19:12 +0100
http://bitbucket.org/pypy/pypy/changeset/91697c0a6b45/

Log:	Revert the changes to the boehm API: it's still possible to find
	machines with an old Boehm library installed, e.g. bencher4

diff --git a/rpython/translator/c/gc.py b/rpython/translator/c/gc.py
--- a/rpython/translator/c/gc.py
+++ b/rpython/translator/c/gc.py
@@ -236,7 +236,7 @@
         if sys.platform == 'win32':
             pass # yield 'assert(GC_all_interior_pointers == 0);'
         else:
-            yield 'GC_set_all_interior_pointers(0);'
+            yield 'GC_all_interior_pointers = 0;'
         yield 'boehm_gc_startup_code();'
 
     def get_real_weakref_type(self):
diff --git a/rpython/translator/c/src/mem.c b/rpython/translator/c/src/mem.c
--- a/rpython/translator/c/src/mem.c
+++ b/rpython/translator/c/src/mem.c
@@ -117,8 +117,8 @@
 void boehm_gc_startup_code(void)
 {
     GC_init();
-    GC_set_finalizer_notifier(&boehm_gc_finalizer_notifier);
-    GC_set_finalize_on_demand(1);
+    GC_finalizer_notifier = &boehm_gc_finalizer_notifier;
+    GC_finalize_on_demand = 1;
     GC_set_warn_proc(mem_boehm_ignore);
 }
 


More information about the pypy-commit mailing list