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
92666536
Commit
92666536
authored
Dec 14, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1032 from undingen/fix_unwind
Fix two unwinding bugs I found while implementing #1031
parents
bd361100
495c2289
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 @
92666536
...
@@ -535,6 +535,7 @@ public:
...
@@ -535,6 +535,7 @@ public:
void
begin
()
{
void
begin
()
{
exc_info
=
ExcInfo
(
NULL
,
NULL
,
NULL
);
exc_info
=
ExcInfo
(
NULL
,
NULL
,
NULL
);
pystack_extractor
=
PythonStackExtractor
();
// resets skip_next_pythonlike_frame
t
.
restart
();
t
.
restart
();
static
StatCounter
stat
(
"unwind_sessions"
);
static
StatCounter
stat
(
"unwind_sessions"
);
...
@@ -990,8 +991,11 @@ Box* PythonFrameIterator::fastLocalsToBoxedLocals() {
...
@@ -990,8 +991,11 @@ Box* PythonFrameIterator::fastLocalsToBoxedLocals() {
// TODO Right now d just has all the python variables that are *initialized*
// 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
// But we also need to loop through all the uninitialized variables that we have
// access to and delete them from the locals dict
// access to and delete them from the locals dict
if
(
frame_info
->
boxedLocals
==
dict_cls
)
{
if
(
frame_info
->
boxedLocals
->
cls
==
dict_cls
)
{
((
BoxedDict
*
)
frame_info
->
boxedLocals
)
->
d
.
insert
(
d
->
d
.
begin
(),
d
->
d
.
end
());
BoxedDict
*
boxed_locals
=
(
BoxedDict
*
)
frame_info
->
boxedLocals
;
for
(
auto
&&
new_elem
:
d
->
d
)
{
boxed_locals
->
d
[
new_elem
.
first
]
=
new_elem
.
second
;
}
}
else
{
}
else
{
for
(
const
auto
&
p
:
*
d
)
{
for
(
const
auto
&
p
:
*
d
)
{
Box
*
varname
=
p
.
first
;
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