Author: wenzhuman <[email protected]>
Branch: gc-pinning
Changeset: r71803:a0902525aa1c
Date: 2014-06-02 03:59 -0400
http://bitbucket.org/pypy/pypy/changeset/a0902525aa1c/
Log: add can_pin_objects flag , pin and unpin in GC base
diff --git a/rpython/memory/gc/base.py b/rpython/memory/gc/base.py
--- a/rpython/memory/gc/base.py
+++ b/rpython/memory/gc/base.py
@@ -15,6 +15,7 @@
class GCBase(object):
_alloc_flavor_ = "raw"
moving_gc = False
+ can_pin_objects = False
needs_write_barrier = False
malloc_zero_filled = False
prebuilt_gc_objects_are_static_roots = True
@@ -174,6 +175,12 @@
def can_move(self, addr):
return False
+
+ def pin(self, addr):
+ pass
+
+ def unpin(self, addr):
+ pass
def set_max_heap_size(self, size):
raise NotImplementedError
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit