Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(analytical): Fix the garbage collection of GAE Java #4001

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
Loading