Fix problem in transferPointer() that would have become a bug once orphans are implemented. See 4d4f831a3d
This commit is contained in:
parent
0fecc0e9b4
commit
b27c5d685d
1 changed files with 4 additions and 4 deletions
|
@ -342,11 +342,11 @@ final class WireHelpers {
|
||||||
} else {
|
} else {
|
||||||
WirePointer.setKindAndTarget(dstSegment.buffer, dstOffset,
|
WirePointer.setKindAndTarget(dstSegment.buffer, dstOffset,
|
||||||
WirePointer.kind(src), srcTargetOffset);
|
WirePointer.kind(src), srcTargetOffset);
|
||||||
|
|
||||||
// We can just copy the upper 32 bits.
|
|
||||||
dstSegment.buffer.putInt(dstOffset * Constants.BYTES_PER_WORD + 4,
|
|
||||||
srcSegment.buffer.getInt(srcOffset * Constants.BYTES_PER_WORD + 4));
|
|
||||||
}
|
}
|
||||||
|
// We can just copy the upper 32 bits.
|
||||||
|
dstSegment.buffer.putInt(dstOffset * Constants.BYTES_PER_WORD + 4,
|
||||||
|
srcSegment.buffer.getInt(srcOffset * Constants.BYTES_PER_WORD + 4));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//# Need to create a far pointer. Try to allocate it in the same segment as the source,
|
//# Need to create a far pointer. Try to allocate it in the same segment as the source,
|
||||||
//# so that it doesn't need to be a double-far.
|
//# so that it doesn't need to be a double-far.
|
||||||
|
|
Loading…
Reference in a new issue