ruby-cvs:25147
From: shyouhei ruby-lang.org
Date: Mon, 7 Jul 2008 15:01:51 +0900 (JST)
Subject: [ruby-cvs:25147] Ruby:r17928 (ruby_1_8_6): merge revision(s) 17832:
shyouhei 2008-07-07 15:01:50 +0900 (Mon, 07 Jul 2008)
New Revision: 17928
Modified files:
branches/ruby_1_8_6/eval.c
branches/ruby_1_8_6/gc.c
branches/ruby_1_8_6/node.h
branches/ruby_1_8_6/version.h
Log:
merge revision(s) 17832:
* eval.c (rb_longjmp): duplicate the thrown exception to set backtrace
if it was frozen. clear all raised flags.
* eval.c (stack_check): leave clearing flag to rb_longjmp.
* eval.c (rb_thread_set_raised, rb_thread_reset_raised): use generic
flags.
* eval.c (Init_Proc), gc.c (Init_GC): freeze preallocated special exceptions.
* gc.c (rb_memerror): use thread raised flag instead of static flag,
and raise nomem_error without backtrace if failed to make backtrace.
[ruby-dev:34724]
* gc.c (ruby_xmalloc): increase malloc_increase only if malloc
succeeds. failed malloc size can be huge. it may increase
malloc_limit too big which cause less GC and memory full.
(ruby_xrealloc): ditto.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17928