[pypy-svn] r69987 - pypy/branch/listcopyop/pypy/rpython/memory/gctransform
fijal at codespeak.net
fijal at codespeak.net
Tue Dec 8 17:16:17 CET 2009
Author: fijal
Date: Tue Dec 8 17:16:16 2009
New Revision: 69987
Modified:
pypy/branch/listcopyop/pypy/rpython/memory/gctransform/framework.py
Log:
complain loud if gc needs write barrier but does not provide
writebarrier_before_copy
Modified: pypy/branch/listcopyop/pypy/rpython/memory/gctransform/framework.py
==============================================================================
--- pypy/branch/listcopyop/pypy/rpython/memory/gctransform/framework.py (original)
+++ pypy/branch/listcopyop/pypy/rpython/memory/gctransform/framework.py Tue Dec 8 17:16:16 2009
@@ -296,6 +296,8 @@
self.wb_before_copy_ptr = \
getfn(GCClass.writebarrier_before_copy.im_func,
[s_gc] + [annmodel.SomeAddress()] * 2, annmodel.s_None)
+ elif GCClass.needs_write_barrier:
+ raise NotImplementedError("GC needs write barrier, but does not provide writebarrier_before_copy functionality")
# in some GCs we can inline the common case of
# malloc_fixedsize(typeid, size, True, False, False)
More information about the Pypy-commit
mailing list