Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
08c385ff
Commit
08c385ff
authored
Jun 17, 2017
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark the GC arena in `final_marking_phase`.
Arena can be modified during the marking phase.
parent
819ccd3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/gc.c
src/gc.c
+7
-1
No files found.
src/gc.c
View file @
08c385ff
...
...
@@ -835,7 +835,7 @@ obj_free(mrb_state *mrb, struct RBasic *obj, int end)
static
void
root_scan_phase
(
mrb_state
*
mrb
,
mrb_gc
*
gc
)
{
size_
t
i
,
e
;
in
t
i
,
e
;
if
(
!
is_minor_gc
(
gc
))
{
gc
->
gray_list
=
NULL
;
...
...
@@ -995,6 +995,12 @@ incremental_marking_phase(mrb_state *mrb, mrb_gc *gc, size_t limit)
static
void
final_marking_phase
(
mrb_state
*
mrb
,
mrb_gc
*
gc
)
{
int
i
,
e
;
/* mark arena */
for
(
i
=
0
,
e
=
gc
->
arena_idx
;
i
<
e
;
i
++
)
{
mrb_gc_mark
(
mrb
,
gc
->
arena
[
i
]);
}
mrb_gc_mark_gv
(
mrb
);
mark_context
(
mrb
,
mrb
->
c
);
mark_context
(
mrb
,
mrb
->
root_c
);
...
...
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