mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (rb_memerror): exit with EXIT_FAILURE instead of magic number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8477860694
commit
32ef17fe7b
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
|||
Fri Jun 13 14:18:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Fri Jun 13 14:24:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* gc.c (rb_memerror): exit with EXIT_FAILURE instead of magic number.
|
||||
|
||||
* gc.c (ruby_stack_check): STACK_LENGTH should be less than
|
||||
STACK_LEVEL_MAX.
|
||||
|
|
2
gc.c
2
gc.c
|
@ -273,7 +273,7 @@ rb_memerror(void)
|
|||
if (!nomem_error ||
|
||||
(rb_thread_raised_p(th, RAISED_NOMEMORY) && rb_safe_level() < 4)) {
|
||||
fprintf(stderr, "[FATAL] failed to allocate memory\n");
|
||||
exit(1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
rb_thread_raised_set(th, RAISED_NOMEMORY);
|
||||
rb_exc_raise(nomem_error);
|
||||
|
|
Loading…
Reference in a new issue