1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c (rb_objspace): an initializer must be a constant.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-03-07 16:17:27 +00:00
parent fe8e2dd1e1
commit 436d5dc6eb
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Mar 8 01:16:49 2011 NARUSE, Yui <naruse@ruby-lang.org>
* gc.c (rb_objspace): an initializer must be a constant.
Tue Mar 8 01:11:44 2011 NARUSE, Yui <naruse@ruby-lang.org>
* process.c (maxgroups): cast because sysconf(3)'s return value is long.

2
gc.c
View file

@ -401,7 +401,7 @@ typedef struct rb_objspace {
static int ruby_initial_gc_stress = 0;
int *ruby_initial_gc_stress_ptr = &ruby_initial_gc_stress;
#else
static rb_objspace_t rb_objspace = {{initial_malloc_limit}, {initial_heap_min_slots}};
static rb_objspace_t rb_objspace = {{GC_MALLOC_LIMIT}, {HEAP_MIN_SLOTS}};
int *ruby_initial_gc_stress_ptr = &rb_objspace.gc_stress;
#endif
#define malloc_limit objspace->malloc_params.limit