[pypy-commit] pypy stm-gc: Dont need to instantiate a class to access static methods
arigo
noreply at buildbot.pypy.org
Sun Feb 12 18:03:07 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r52392:f312b056bb07
Date: 2012-02-12 12:16 +0100
http://bitbucket.org/pypy/pypy/changeset/f312b056bb07/
Log: Dont need to instantiate a class to access static methods
diff --git a/pypy/rpython/lltypesystem/opimpl.py b/pypy/rpython/lltypesystem/opimpl.py
--- a/pypy/rpython/lltypesystem/opimpl.py
+++ b/pypy/rpython/lltypesystem/opimpl.py
@@ -611,11 +611,11 @@
def op_stm_descriptor_init():
# for direct testing only
from pypy.translator.stm import stmgcintf
- stmgcintf.StmOperations().set_tls(llmemory.NULL, 0)
+ stmgcintf.StmOperations.set_tls(llmemory.NULL, 0)
def op_stm_descriptor_done():
from pypy.translator.stm import stmgcintf
- stmgcintf.StmOperations().del_tls()
+ stmgcintf.StmOperations.del_tls()
def op_stm_start_transaction():
pass
More information about the pypy-commit
mailing list