зеркало из https://github.com/github/ruby.git
* re.c (rb_reg_raise): add GC guard to prevent intermediate
variable from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1e60af4d67
Коммит
58da04b398
|
@ -1,3 +1,8 @@
|
|||
Fri Jan 28 02:37:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* re.c (rb_reg_raise): add GC guard to prevent intermediate
|
||||
variable from GC.
|
||||
|
||||
Fri Jan 28 02:35:41 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* hash.c (rb_hash_fetch_m): add GC guard to prevent intermediate
|
||||
|
|
2
re.c
2
re.c
|
@ -590,7 +590,7 @@ rb_reg_to_s(VALUE re)
|
|||
static void
|
||||
rb_reg_raise(const char *s, long len, const char *err, VALUE re)
|
||||
{
|
||||
VALUE desc = rb_reg_desc(s, len, re);
|
||||
volatile VALUE desc = rb_reg_desc(s, len, re);
|
||||
|
||||
rb_raise(rb_eRegexpError, "%s: %s", err, RSTRING_PTR(desc));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче