diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-05 14:41:41 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-05 14:41:41 +0000 |
commit | 814f534d1180eca991393b0164b54a58ca34b82a (patch) | |
tree | 560ebdb5f50a90e9f87cab76cdfdcb5547345a74 | |
parent | e5bda1f40cb8def8871380a3bf8809bc75ccc313 (diff) | |
download | ruby-814f534d1180eca991393b0164b54a58ca34b82a.tar.gz ruby-814f534d1180eca991393b0164b54a58ca34b82a.tar.xz ruby-814f534d1180eca991393b0164b54a58ca34b82a.zip |
* gc.c (rb_objspace_alloc): this function is needed only when
ENABLE_VM_OBJSPACE macro is defined.
* vm.c: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gc.c | 2 | ||||
-rw-r--r-- | vm.c | 2 |
3 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Thu Jun 5 23:40:08 2008 Yusuke Endoh <mame@tsg.ne.jp> + + * gc.c (rb_objspace_alloc): this function is needed only when + ENABLE_VM_OBJSPACE macro is defined. + + * vm.c: ditto. + Thu Jun 5 23:31:21 2008 Yusuke Endoh <mame@tsg.ne.jp> * test/stringio/test_stringio.rb: add tests to achieve over 95% test @@ -201,6 +201,7 @@ static rb_objspace_t rb_objspace = {{GC_MALLOC_LIMIT}, {HEAP_MIN_SLOTS}}; #define mark_stack_overflow objspace->markstack.overflow #define global_List objspace->global_list +#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE rb_objspace_t * rb_objspace_alloc(void) { @@ -210,6 +211,7 @@ rb_objspace_alloc(void) return objspace; } +#endif /* tiny heap size */ /* 32KB */ @@ -1728,7 +1728,9 @@ Init_VM(void) vm_init_redefined_flag(); } +#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE struct rb_objspace *rb_objspace_alloc(void); +#endif void Init_BareVM(void) |