Ticket #757: TRAC-757-3.patch
File TRAC-757-3.patch, 1.1 KB (added by kyle_l5l, 12 years ago) |
---|
-
src/pmc/parrotinterpreter.pmc
old new 90 90 PObj_is_class_TEST(s->vtables[i]->pmc_class)) { 91 91 STRING * const class_name = 92 92 VTABLE_get_string(s, s->vtables[i]->pmc_class); 93 PARROT_ASSERT(VTABLE_exists_keyed_str(d, 94 d->class_hash, class_name)); 95 96 VTABLE_delete_keyed_str(d, d->class_hash, class_name); 97 98 if (last_remove == i + 1) { 99 --d->n_vtable_max; 100 last_remove = i; 101 } 93 if (VTABLE_exists_keyed_str(d, d->class_hash, class_name)){ 94 VTABLE_delete_keyed_str(d, d->class_hash, class_name); 95 96 if (last_remove == i + 1) { 97 --d->n_vtable_max; 98 last_remove = i; 99 } 100 } 102 101 } 103 102 } 103 d->n_vtable_max = start; // prevent hole between start and s->vtablemax 104 104 } 105 105 106 106 if (flags & PARROT_CLONE_LIBRARIES) {