Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
abbbde02
Commit
abbbde02
authored
Jan 05, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Share the GIL when in the interpreter
parent
df0a8454
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/codegen/ast_interpreter.cpp
src/codegen/ast_interpreter.cpp
+7
-1
No files found.
src/codegen/ast_interpreter.cpp
View file @
abbbde02
...
...
@@ -281,6 +281,8 @@ public:
}
Value
ASTInterpreter
::
execute
(
ASTInterpreter
&
interpreter
,
AST_stmt
*
start_at
)
{
threading
::
allowGLReadPreemption
();
assert
(
start_at
==
NULL
);
void
*
frame_addr
=
__builtin_frame_address
(
0
);
...
...
@@ -409,7 +411,11 @@ Value ASTInterpreter::visit_branch(AST_Branch* node) {
}
Value
ASTInterpreter
::
visit_jump
(
AST_Jump
*
node
)
{
if
(
ENABLE_OSR
&&
node
->
target
->
idx
<
current_block
->
idx
&&
compiled_func
)
{
bool
backedge
=
node
->
target
->
idx
<
current_block
->
idx
&&
compiled_func
;
if
(
backedge
)
threading
::
allowGLReadPreemption
();
if
(
ENABLE_OSR
&&
backedge
)
{
++
edgecount
;
if
(
edgecount
>
OSR_THRESHOLD
)
{
eraseDeadSymbols
();
...
...
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