[pypy-commit] pypy default: Support for revdb translation
arigo
pypy.commits at gmail.com
Sat Jan 19 17:58:28 EST 2019
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r95676:30d8fded3b4f
Date: 2019-01-19 23:36 +0100
http://bitbucket.org/pypy/pypy/changeset/30d8fded3b4f/
Log: Support for revdb translation
diff --git a/pypy/module/gc/__init__.py b/pypy/module/gc/__init__.py
--- a/pypy/module/gc/__init__.py
+++ b/pypy/module/gc/__init__.py
@@ -4,7 +4,6 @@
class Module(MixedModule):
interpleveldefs = {
'collect': 'interp_gc.collect',
- 'collect_step': 'interp_gc.collect_step',
'enable': 'interp_gc.enable',
'disable': 'interp_gc.disable',
'isenabled': 'interp_gc.isenabled',
@@ -23,6 +22,7 @@
'get_stats': 'app_referents.get_stats',
})
self.interpleveldefs.update({
+ 'collect_step': 'interp_gc.collect_step',
'get_rpy_roots': 'referents.get_rpy_roots',
'get_rpy_referents': 'referents.get_rpy_referents',
'get_rpy_memory_usage': 'referents.get_rpy_memory_usage',
diff --git a/rpython/translator/c/src/mem.h b/rpython/translator/c/src/mem.h
--- a/rpython/translator/c/src/mem.h
+++ b/rpython/translator/c/src/mem.h
@@ -112,6 +112,8 @@
#define OP_GC__DISABLE_FINALIZERS(r) boehm_gc_finalizer_lock++
#define OP_GC__ENABLE_FINALIZERS(r) (boehm_gc_finalizer_lock--, \
boehm_gc_finalizer_notifier())
+#define OP_GC__DISABLE(r) /* nothing */
+#define OP_GC__ENABLE(r) /* nothing */
#define OP_BOEHM_FQ_REGISTER(tagindex, obj, r) \
boehm_fq_register(boehm_fq_queues + tagindex, obj)
@@ -127,6 +129,8 @@
#define OP_BOEHM_DISAPPEARING_LINK(link, obj, r) /* nothing */
#define OP_GC__DISABLE_FINALIZERS(r) /* nothing */
#define OP_GC__ENABLE_FINALIZERS(r) /* nothing */
+#define OP_GC__DISABLE(r) /* nothing */
+#define OP_GC__ENABLE(r) /* nothing */
#define GC_REGISTER_FINALIZER(a, b, c, d, e) /* nothing */
#define GC_gcollect() /* nothing */
#define GC_set_max_heap_size(a) /* nothing */
More information about the pypy-commit
mailing list