Commit 98ae9e0e authored by Xavier Thompson's avatar Xavier Thompson

Avoid locking the object on which a static method is called

parent 77032493
......@@ -6283,7 +6283,9 @@ class SimpleCallNode(CallNode):
else:
actual_arg.ensure_rhs_locked(env, is_dereferenced = deref_flag)
# XXX - Should we do something in a pyfunc case ?
if func_type.is_const_method:
if func_type.is_static_method:
pass # no need to lock the object on which a static method is called
elif func_type.is_const_method:
self.function.ensure_rhs_locked(env)
else:
self.function.ensure_lhs_locked(env)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment