void symbolTable::switch_pointers(oop from, oop to) { if (! from->is_symbol()) return; assert(to->is_symbol(), "cannot replace a symbol with a non-symbol"); symbolTableEntry* e; FOR_ALL_ENTRIES(e) { symbolOop* addr; FOR_ALL_SYMBOL_ADDR(e, addr, SWITCH_POINTERS_TEMPLATE(addr)); } }
void stringTable::switch_pointers(oop from, oop to) { if (! from->is_string()) return; assert(to->is_string(), "cannot replace a string with a non-string"); findSlotCache.clear(); stringTableEntry* e; FOR_ALL_ENTRIES(e) { stringOop* addr; FOR_ALL_STRING_ADDR(e, addr, SWITCH_POINTERS_TEMPLATE(addr)); } }
void NMethodLookupKey::switch_pointers(oop from, oop to) { SWITCH_POINTERS_TEMPLATE(&_receiverMapOop); SWITCH_POINTERS_TEMPLATE(&_methodHolder_or_map); SWITCH_POINTERS_TEMPLATE(&selector); SWITCH_POINTERS_TEMPLATE(&delegatee); }