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
e18f82ad
Commit
e18f82ad
authored
Sep 22, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #934 from kmod/set_fix
Try to fix set-dtor segfault
parents
ccf06236
3b44af6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/runtime/set.cpp
src/runtime/set.cpp
+2
-1
src/runtime/types.h
src/runtime/types.h
+1
-1
No files found.
src/runtime/set.cpp
View file @
e18f82ad
...
...
@@ -664,7 +664,8 @@ done:
}
// namespace set
void
BoxedSet
::
dealloc
(
Box
*
b
)
noexcept
{
assert
(
PyAnySet_Check
(
b
));
// Unfortunately, this assert requires accessing the type object, which might have been freed already:
// assert(PyAnySet_Check(b));
static_cast
<
BoxedSet
*>
(
b
)
->
s
.
freeAllMemory
();
}
...
...
src/runtime/types.h
View file @
e18f82ad
...
...
@@ -209,7 +209,7 @@ public:
// A "safe" tp_dealloc destructor/finalizer is one we believe:
// 1) Can be called at any point after the object is dead.
// (implies it's references could be finalized already)
// (implies it's references could be finalized already
, including its class
)
// 2) Won't take a lot of time to run.
// 3) Won't take up a lot of memory (requiring another GC run).
// 4) Won't resurrect itself.
...
...
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