VM_Address obj = VM_Magic.getMemoryAddress(location); if (!obj.isZero()) { VM_Address addr = VM_Interface.refToAddress(obj); byte space = VMResource.getSpace(addr); if ((hi && space == LOW_SS_SPACE) || (!hi && space == HIGH_SS_SPACE)) VM_Magic.setMemoryAddress(location, CopySpace.forwardObject(obj));
if (traceInducedGC) { VM_Address obj = VM_Magic.getMemoryAddress(location); if (!obj.isZero()) { TraceGenerator.rootEnumerate(obj); } } else { VM_Address obj = VM_Magic.getMemoryAddress(location); if (!obj.isZero()) { VM_Address addr = VM_Interface.refToAddress(obj); byte space = VMResource.getSpace(addr); if ((hi && space == LOW_SS_SPACE) || (!hi && space == HIGH_SS_SPACE)) VM_Magic.setMemoryAddress(location, CopySpace.forwardObject(obj)); }
  public static void forwardObjectLocation(VM_Address location)     throws VM_PragmaInline {    VM_Address obj = VM_Magic.getMemoryAddress(location);    if (!obj.isZero()) {      VM_Address addr = VM_Interface.refToAddress(obj);      byte space = VMResource.getSpace(addr);      if ((hi && space == LOW_SS_SPACE) || (!hi && space == HIGH_SS_SPACE))        VM_Magic.setMemoryAddress(location, CopySpace.forwardObject(obj));    }  }