0003-vm_method.c-ephemeral-classes-do-not-write-expire-ca.patch

Eric Wong, 04/09/2011 03:54 PM

Download (980 Bytes)

View differences:

vm_method.c
85 85
{
86 86
    struct cache_entry *ent, *end;
87 87

  
88
    /* ephemeral class does not write to cache */
89
    if (FL_TEST(klass, RCLASS_EPHEMERAL))
90
	return;
91

  
88 92
    rb_vm_change_state();
89 93

  
90 94
    if (!ruby_running)
......
417 421
{
418 422
    rb_method_entry_t *me = search_method(klass, id);
419 423

  
420
    if (ruby_running) {
424
    if (ruby_running && ! FL_TEST(klass, RCLASS_EPHEMERAL)) {
421 425
	struct cache_entry *ent;
426

  
422 427
	ent = cache + EXPR1(klass, id);
423 428
	ent->klass = klass;
424 429