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
36ab17d8
Commit
36ab17d8
authored
May 31, 2014
by
katmutua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in gc
parent
2ad2cf2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/gc.c
src/gc.c
+6
-6
No files found.
src/gc.c
View file @
36ab17d8
...
...
@@ -34,7 +34,7 @@
== Two White Types
There're two white color types in a flip-flop fas
s
ion: White-A and White-B,
There're two white color types in a flip-flop fas
h
ion: White-A and White-B,
which respectively represent the Current White color (the newly allocated
objects in the current GC cycle) and the Sweep Target White color (the
dead objects to be swept).
...
...
@@ -43,8 +43,8 @@
that time, all the dead objects have been swept, while the newly created
objects in the current GC cycle which finally remains White are now
regarded as dead objects. Instead of traversing all the White-A objects and
paint
them as White-B, just switch the meaning of White-A and White-B would
be much cheaper.
paint
ing them as White-B, just switch the meaning of White-A and White-B as
this will
be much cheaper.
As a result, the objects we sweep in the current GC cycle are always
left from the previous GC cycle. This allows us to sweep objects
...
...
@@ -73,8 +73,8 @@
mruby's GC offers an Generational Mode while re-using the tri-color GC
infrastructure. It will treat the Black objects as Old objects after each
sweep phase, instead of paint
them to White. The key idea are still same as
the
traditional generational GC:
sweep phase, instead of paint
ing them White. The key ideas are still the same
as
traditional generational GC:
* Minor GC - just traverse the Young objects (Gray objects) in the mark
phase, then only sweep the newly created objects, and leave
...
...
@@ -82,7 +82,7 @@
* Major GC - same as a full regular GC cycle.
The difference
to a
"traditional" generational GC is, that the major GC
The difference
from
"traditional" generational GC is, that the major GC
in mruby is triggered incrementally in a tri-color manner.
...
...
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