Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public void receiveMessages() {
///////////////////////////////////////////
bytesOfReceivedMsg += tmpVector.size();
}
tmpVector.delete();
logger.info(
"Frag [{}] totally Received [{}] bytes from others starting deserialization",
fragId,
Expand Down Expand Up @@ -255,5 +256,9 @@ public void postSuperstep() {
}

@Override
public void postApplication() {}
public void postApplication() {
for (int i = 0; i < fragNum; ++i) {
cacheOut[i].close();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public FFIByteVectorOutputStream(FFIByteVector vector) {
offset = 0;
}

@Override
public void close() {
vector.delete();
}

public void resize(long size) {
vector.resize(size);
}
Expand Down