Author: Armin Rigo <[email protected]>
Branch: stm-thread
Changeset: r55594:fd38a91332ac
Date: 2012-06-11 16:34 +0200
http://bitbucket.org/pypy/pypy/changeset/fd38a91332ac/
Log: Anther __builtin_except() to mark the slow path.
diff --git a/pypy/translator/stm/src_stm/lists.c
b/pypy/translator/stm/src_stm/lists.c
--- a/pypy/translator/stm/src_stm/lists.c
+++ b/pypy/translator/stm/src_stm/lists.c
@@ -238,7 +238,7 @@
in addition, we need a general de-duplicator logic called
at every local_collection().
*/
- if (oreclist->size == oreclist->alloc)
+ if (__builtin_expect(oreclist->size == oreclist->alloc, 0))
_oreclist_grow(oreclist);
oreclist->items[oreclist->size++] = newitem;
}
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit