[pypy-commit] pypy stmgc-c4: Use stm_ignored here
arigo
noreply at buildbot.pypy.org
Fri Oct 4 07:04:39 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c4
Changeset: r67147:e6fe5ef81974
Date: 2013-10-04 05:50 +0200
http://bitbucket.org/pypy/pypy/changeset/e6fe5ef81974/
Log: Use stm_ignored here
diff --git a/rpython/rtyper/lltypesystem/rstr.py b/rpython/rtyper/lltypesystem/rstr.py
--- a/rpython/rtyper/lltypesystem/rstr.py
+++ b/rpython/rtyper/lltypesystem/rstr.py
@@ -4,7 +4,7 @@
from rpython.rlib import jit, types, rgc
from rpython.rlib.debug import ll_assert
from rpython.rlib.objectmodel import (malloc_zero_filled, we_are_translated,
- _hash_string, keepalive_until_here, specialize)
+ _hash_string, keepalive_until_here, specialize, stm_ignored)
from rpython.rlib.signature import signature
from rpython.rlib.rarithmetic import ovfcheck
from rpython.rtyper.error import TyperError
@@ -342,12 +342,14 @@
# special non-computed-yet value.
if not s:
return 0
- x = s.hash
+ with stm_ignored:
+ x = s.hash
if x == 0:
x = _hash_string(s.chars)
if x == 0:
x = 29872897
- s.hash = x
+ with stm_ignored:
+ s.hash = x
return x
def ll_length(s):
More information about the pypy-commit
mailing list