зеркало из https://github.com/github/ruby.git
gc.c: fix typo
* gc.c (gcdebug_sentinel): fix typo, "sentinel" not "sential". [fix GH-634] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
71992ebdbd
Коммит
029fd365df
|
@ -1,3 +1,8 @@
|
|||
Mon Jun 9 16:01:41 2014 Masahiro Ide <imasahiro9@gmail.com>
|
||||
|
||||
* gc.c (gcdebug_sentinel): fix typo, "sentinel" not "sential".
|
||||
[fix GH-634]
|
||||
|
||||
Mon Jun 9 00:04:25 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (posix_fadvise): disable use of posix_fadvise
|
||||
|
|
4
gc.c
4
gc.c
|
@ -7650,7 +7650,7 @@ rb_gcdebug_print_obj_condition(VALUE obj)
|
|||
}
|
||||
|
||||
static VALUE
|
||||
gcdebug_sential(VALUE obj, VALUE name)
|
||||
gcdebug_sentinel(VALUE obj, VALUE name)
|
||||
{
|
||||
fprintf(stderr, "WARNING: object %s(%p) is inadvertently collected\n", (char *)name, (void *)obj);
|
||||
return Qnil;
|
||||
|
@ -7659,7 +7659,7 @@ gcdebug_sential(VALUE obj, VALUE name)
|
|||
void
|
||||
rb_gcdebug_sentinel(VALUE obj, const char *name)
|
||||
{
|
||||
rb_define_finalizer(obj, rb_proc_new(gcdebug_sential, (VALUE)name));
|
||||
rb_define_finalizer(obj, rb_proc_new(gcdebug_sentinel, (VALUE)name));
|
||||
}
|
||||
#endif /* GC_DEBUG */
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче