Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
91dfd344
Commit
91dfd344
authored
Nov 09, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Prevent nested lock acquisition in operations and function calls"
This reverts commit
778550c9
.
parent
cf164568
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
23 deletions
+1
-23
Cython/Compiler/CypclassTransforms.py
Cython/Compiler/CypclassTransforms.py
+0
-21
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-2
No files found.
Cython/Compiler/CypclassTransforms.py
View file @
91dfd344
...
...
@@ -512,27 +512,6 @@ class CypclassLockTransform(Visitor.EnvTransform):
node
.
base
=
self
.
visit
(
node
.
base
)
return
node
def
visit_SimpleCallNode
(
self
,
node
):
if
node
.
type
.
is_error
:
return
node
for
i
,
arg
in
enumerate
(
node
.
args
or
()):
node
.
args
[
i
]
=
self
.
visit_value
(
arg
)
self
.
visitchildren
(
node
,
exclude
=
[
'args'
])
return
node
# Todo: other kinds of method calls
def
visit_BinopNode
(
self
,
node
):
node
.
operand1
=
self
.
visit_value
(
node
.
operand1
)
node
.
operand2
=
self
.
visit_value
(
node
.
operand2
)
return
node
def
visit_UnopNode
(
self
,
node
):
node
.
operand
=
self
.
visit_value
(
node
.
operand
)
return
node
# Todo: other kinds of operations (comparisons, ...)
def
visit_DelStatNode
(
self
,
node
):
for
arg
in
node
.
args
:
arg_entry
=
self
.
id
(
arg
)
...
...
Cython/Compiler/ExprNodes.py
View file @
91dfd344
...
...
@@ -5935,8 +5935,7 @@ class SimpleCallNode(CallNode):
# explicit_cpp_self bool used internally
# needs_deref bool used internally
# evaluate arguments first.
subexprs
=
[
'self'
,
'coerced_self'
,
'args'
,
'arg_tuple'
,
'function'
]
subexprs
=
[
'self'
,
'coerced_self'
,
'function'
,
'args'
,
'arg_tuple'
]
self
=
None
coerced_self
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment