Author: Remi Meier <[email protected]>
Branch: nogil-unsafe-2
Changeset: r90532:79fcf2f97451
Date: 2017-03-04 13:03 +0100
http://bitbucket.org/pypy/pypy/changeset/79fcf2f97451/
Log: (arigo, remi) add lock to yet another place
diff --git a/rpython/memory/gc/incminimark.py b/rpython/memory/gc/incminimark.py
--- a/rpython/memory/gc/incminimark.py
+++ b/rpython/memory/gc/incminimark.py
@@ -1607,6 +1607,13 @@
def writebarrier_before_copy(self, source_addr, dest_addr,
source_start, dest_start, length):
+ rthread.acquire_NOAUTO(self.wb_slowpath_lock, True)
+ res = self._writebarrier_before_copy(source_addr, dest_addr,
source_start, dest_start, length)
+ rthread.release_NOAUTO(self.wb_slowpath_lock)
+ return res
+
+ def _writebarrier_before_copy(self, source_addr, dest_addr,
+ source_start, dest_start, length):
""" This has the same effect as calling writebarrier over
each element in dest copied from source, except it might reset
one of the following flags a bit too eagerly, which means we'll have
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit