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
1e87bf6d
Commit
1e87bf6d
authored
Aug 08, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow turning off GC generational mode by default by MRB_GC_TURN_OFF_GENERATIONAL; #1447
parent
3b2b760e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
include/mrbconf.h
include/mrbconf.h
+3
-0
src/gc.c
src/gc.c
+2
-0
No files found.
include/mrbconf.h
View file @
1e87bf6d
...
@@ -41,6 +41,9 @@
...
@@ -41,6 +41,9 @@
/* initial size for IREP array */
/* initial size for IREP array */
//#define MRB_IREP_ARRAY_INIT_SIZE (256u)
//#define MRB_IREP_ARRAY_INIT_SIZE (256u)
/* turn off generational GC by default */
//#define MRB_GC_TURN_OFF_GENERATIONAL
/* default size of khash table bucket */
/* default size of khash table bucket */
//#define KHASH_DEFAULT_SIZE 32
//#define KHASH_DEFAULT_SIZE 32
...
...
src/gc.c
View file @
1e87bf6d
...
@@ -334,8 +334,10 @@ mrb_init_heap(mrb_state *mrb)
...
@@ -334,8 +334,10 @@ mrb_init_heap(mrb_state *mrb)
add_heap
(
mrb
);
add_heap
(
mrb
);
mrb
->
gc_interval_ratio
=
DEFAULT_GC_INTERVAL_RATIO
;
mrb
->
gc_interval_ratio
=
DEFAULT_GC_INTERVAL_RATIO
;
mrb
->
gc_step_ratio
=
DEFAULT_GC_STEP_RATIO
;
mrb
->
gc_step_ratio
=
DEFAULT_GC_STEP_RATIO
;
#ifndef MRB_GC_TURN_OFF_GENERATIONAL
mrb
->
is_generational_gc_mode
=
TRUE
;
mrb
->
is_generational_gc_mode
=
TRUE
;
mrb
->
gc_full
=
TRUE
;
mrb
->
gc_full
=
TRUE
;
#endif
#ifdef GC_PROFILE
#ifdef GC_PROFILE
program_invoke_time
=
gettimeofday_time
();
program_invoke_time
=
gettimeofday_time
();
...
...
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