Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r88668:11c7fca5679d
Date: 2016-11-25 12:04 +0100
http://bitbucket.org/pypy/pypy/changeset/11c7fca5679d/
Log: Trying to avoid some of the dummy setfield_gc
diff --git a/pypy/objspace/std/unicodeobject.py
b/pypy/objspace/std/unicodeobject.py
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -81,7 +81,8 @@
try:
identifier = jit.conditional_call_elidable(
self._utf8, g_encode_utf8, self._value)
- self._utf8 = identifier
+ if not jit.isconstant(self):
+ self._utf8 = identifier
except UnicodeEncodeError:
# bah, this is just to get an official app-level
# UnicodeEncodeError
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit