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
3d9a8393
Commit
3d9a8393
authored
Aug 15, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have to clear runtime ics more fully when destructed
parent
06dd454c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/asm_writing/icinfo.cpp
src/asm_writing/icinfo.cpp
+7
-6
No files found.
src/asm_writing/icinfo.cpp
View file @
3d9a8393
...
...
@@ -78,10 +78,13 @@ void ICSlotInfo::clear(bool should_invalidate) {
ic
->
invalidate
(
this
);
used
=
false
;
for
(
auto
p
:
gc_references
)
{
// Have to be careful here: DECREF can end up recursively clearing this slot
std
::
vector
<
void
*>
saved_gc_references
;
std
::
swap
(
saved_gc_references
,
gc_references
);
for
(
auto
p
:
saved_gc_references
)
{
Py_DECREF
(
p
);
}
gc_references
.
clear
();
saved_
gc_references
.
clear
();
for
(
auto
&&
invalidator
:
invalidators
)
{
invalidator
->
remove
(
this
);
...
...
@@ -353,10 +356,8 @@ ICInfo::~ICInfo() {
deregisterGCTrackedICInfo
(
this
);
for
(
auto
&
slot
:
slots
)
{
for
(
auto
invalidator
:
slot
.
invalidators
)
{
assert
(
invalidator
->
dependents
.
count
(
&
slot
));
invalidator
->
dependents
.
erase
(
&
slot
);
}
// Calling a full clear() might be overkill here, but probably better safe than sorry:
slot
.
clear
(
false
);
}
}
...
...
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