For starters, it shouldn't go looking for the VM every time.
What if the right solution here is to JIT the SlotVisitor? That would be cool.
(In reply to comment #1) > What if the right solution here is to JIT the SlotVisitor? That would be > cool. BTW that's not insane. That's what Jikes RVM did: we had a specialized compiler for the visiting methods. It was a progression.
But an even better solution would be to just make methodTable() not terrible.
Sorry. Closed the wrong bug.