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
3ba67db1
Commit
3ba67db1
authored
Feb 25, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '926665' into refcounting
parents
a4b1b03a
92666536
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/codegen/unwinding.cpp
src/codegen/unwinding.cpp
+6
-2
No files found.
src/codegen/unwinding.cpp
View file @
3ba67db1
...
...
@@ -533,6 +533,7 @@ public:
void
begin
()
{
exc_info
=
ExcInfo
(
NULL
,
NULL
,
NULL
);
pystack_extractor
=
PythonStackExtractor
();
// resets skip_next_pythonlike_frame
t
.
restart
();
static
StatCounter
stat
(
"unwind_sessions"
);
...
...
@@ -968,8 +969,11 @@ Box* PythonFrameIterator::fastLocalsToBoxedLocals() {
// TODO Right now d just has all the python variables that are *initialized*
// But we also need to loop through all the uninitialized variables that we have
// access to and delete them from the locals dict
if
(
frame_info
->
boxedLocals
==
dict_cls
)
{
((
BoxedDict
*
)
frame_info
->
boxedLocals
)
->
d
.
insert
(
d
->
d
.
begin
(),
d
->
d
.
end
());
if
(
frame_info
->
boxedLocals
->
cls
==
dict_cls
)
{
BoxedDict
*
boxed_locals
=
(
BoxedDict
*
)
frame_info
->
boxedLocals
;
for
(
auto
&&
new_elem
:
d
->
d
)
{
boxed_locals
->
d
[
new_elem
.
first
]
=
new_elem
.
second
;
}
}
else
{
for
(
const
auto
&
p
:
*
d
)
{
Box
*
varname
=
p
.
first
;
...
...
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