Skip to content

Commit fb66d78

Browse files
committed
Fixes
1 parent 1a0be29 commit fb66d78

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/image/SqueakImageContext.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ public boolean toggleCurrentMarkingFlag() {
431431
}
432432

433433
public void setLastHash(final int lastHash) {
434-
assert this.lastHash == 0;
435434
this.lastHash = lastHash;
436435
}
437436

src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/image/SqueakImageReader.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private void readImage(final MappedByteBuffer buffer) {
9999
final long dataSize = buffer.getLong();
100100
final long oldBaseAddress = buffer.getLong();
101101
specialObjectsPointer = buffer.getLong();
102-
final long lastHash = buffer.getLong();
102+
image.setLastHash((int) buffer.getLong());
103103
final long snapshotScreenSize = buffer.getLong();
104104
final long headerFlags = buffer.getLong();
105105
// extraVMMemory
@@ -120,8 +120,6 @@ private void readImage(final MappedByteBuffer buffer) {
120120
final long firstSegmentSize = buffer.getLong();
121121
// freeOldSpace
122122
buffer.getLong();
123-
124-
image.setLastHash(MiscUtils.toIntExact(lastHash));
125123
image.flags.initialize(oldBaseAddress, headerFlags, snapshotScreenSize, maxExternalSemaphoreTableSize);
126124

127125
skip(buffer, headerSize - buffer.position());

0 commit comments

Comments
 (0)