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
a32fdf3e
Commit
a32fdf3e
authored
Aug 01, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1426 from Fleurer/clear-all-old
add comments for clear_all_old()
parents
429e6924
107906e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/gc.c
src/gc.c
+6
-2
No files found.
src/gc.c
View file @
a32fdf3e
...
...
@@ -941,11 +941,15 @@ clear_all_old(mrb_state *mrb)
incremental_gc_until
(
mrb
,
GC_STATE_NONE
);
}
/* Sweep the dead objects, then reset all the live objects
* (including all the old objects, of course) to white. */
mrb
->
is_generational_gc_mode
=
FALSE
;
prepare_incremental_sweep
(
mrb
);
incremental_gc_until
(
mrb
,
GC_STATE_NONE
);
mrb
->
atomic_gray_list
=
mrb
->
gray_list
=
NULL
;
mrb
->
is_generational_gc_mode
=
origin_mode
;
/* The gray objects has already been painted as white */
mrb
->
atomic_gray_list
=
mrb
->
gray_list
=
NULL
;
}
void
...
...
@@ -998,7 +1002,7 @@ mrb_full_gc(mrb_state *mrb)
incremental_gc_until
(
mrb
,
GC_STATE_NONE
);
}
/* clea
n all black object as old
*/
/* clea
r all the old objects back to young
*/
if
(
is_generational
(
mrb
))
{
clear_all_old
(
mrb
);
mrb
->
gc_full
=
TRUE
;
...
...
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