[pypy-commit] stmgc default: Bug fix
arigo
noreply at buildbot.pypy.org
Mon May 27 19:20:18 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r46:232756021e7d
Date: 2013-05-27 19:20 +0200
http://bitbucket.org/pypy/stmgc/changeset/232756021e7d/
Log: Bug fix
diff --git a/c3/et.c b/c3/et.c
--- a/c3/et.c
+++ b/c3/et.c
@@ -209,6 +209,10 @@
gcptr _stm_nonrecord_barrier(gcptr obj, int *result)
{
/* warning, this is for tests only, and it is not thread-safe! */
+ struct tx_descriptor *d = thread_descriptor;
+ if (gcptrlist_size(&d->stolen_objects) > 0)
+ stmgc_normalize_stolen_objects();
+
enum protection_class_t e = stmgc_classify(obj);
if (e == K_PRIVATE)
{
@@ -228,7 +232,6 @@
return obj;
}
- struct tx_descriptor *d = thread_descriptor;
wlog_t *item;
G2L_LOOP_FORWARD(d->public_to_private, item)
{
More information about the pypy-commit
mailing list