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
6042419c
Commit
6042419c
authored
May 06, 2016
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't update boxed frame on exit when it's not used
parent
8b004563
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/runtime/frame.cpp
src/runtime/frame.cpp
+3
-2
No files found.
src/runtime/frame.cpp
View file @
6042419c
...
...
@@ -185,7 +185,6 @@ public:
}
static
int
clear
(
Box
*
self
)
noexcept
{
BoxedFrame
*
o
=
static_cast
<
BoxedFrame
*>
(
self
);
assert
(
o
->
hasExited
());
Py_CLEAR
(
o
->
_back
);
Py_CLEAR
(
o
->
_code
);
Py_CLEAR
(
o
->
_globals
);
...
...
@@ -264,7 +263,9 @@ extern "C" void deinitFrame(FrameInfo* frame_info) {
cur_thread_state
.
frame_info
=
frame_info
->
back
;
BoxedFrame
*
frame
=
frame_info
->
frame_obj
;
if
(
frame
)
{
frame
->
handleFrameExit
();
// we don't have to call handleFrameExit() if are the only owner because we will clear it in the next line..
if
(
frame
->
ob_refcnt
>
1
)
frame
->
handleFrameExit
();
Py_CLEAR
(
frame_info
->
frame_obj
);
}
...
...
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