Commit e5db8237 authored by Xavier Thompson's avatar Xavier Thompson

Avoid locking the object on which a static method is called

parent 83593960
......@@ -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