ruby-cvs:25149
From: shyouhei ruby-lang.org
Date: Mon, 7 Jul 2008 15:17:25 +0900 (JST)
Subject: [ruby-cvs:25149] Ruby:r17930 (ruby_1_8_7): merge revision(s) 17832:
shyouhei 2008-07-07 15:17:24 +0900 (Mon, 07 Jul 2008)
New Revision: 17930
Modified files:
branches/ruby_1_8_7/ChangeLog
branches/ruby_1_8_7/eval.c
branches/ruby_1_8_7/gc.c
branches/ruby_1_8_7/node.h
branches/ruby_1_8_7/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=17930