// ObjectIds since they don't exist in the users code. Storing them as an
// ObjectId would mean they could be garbage collected since no one else
// has a reference to them. Furthermore they are not ReferenceTypeIds since
// these are held permanently and we want these to be held only as long as
// the Thread is suspended.
VMFrame frame = VMVirtualMachine.getFrame(thread, bb);
int slots = bb.getInt();
os.writeInt(slots); // Looks pointless but this is the protocol
for (int i = 0; i < slots; i++)
{
int slot = bb.getInt();
byte sig = bb.get();
Object val = frame.getValue(slot);
Value.writeTaggedValue(os, val);
}
}