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
ea496d13
Commit
ea496d13
authored
Sep 04, 2015
by
Rudi Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scan GC references stored in rewriter during the rewrite.
A GC could happen during the rewrite.
parent
41b8dbc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/asm_writing/rewriter.cpp
src/asm_writing/rewriter.cpp
+6
-0
No files found.
src/asm_writing/rewriter.cpp
View file @
ea496d13
...
...
@@ -1389,6 +1389,12 @@ void Rewriter::addDependenceOn(ICInvalidator& invalidator) {
void
Rewriter
::
gc_visit
(
GCVisitor
*
visitor
)
{
rewrite
->
gc_visit
(
visitor
);
// A GC could happen during a rewrite, so we need to scan the list of references
// both as it is being built and after the rewrite commits.
for
(
auto
&
reference
:
gc_references
)
{
visitor
->
visitNonRelocatable
(
reference
);
}
}
Location
Rewriter
::
allocScratch
()
{
...
...
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