Skip to content

Java garbage collection bugfix #822

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

Merged
merged 2 commits into from
Aug 22, 2015

Conversation

nrgraham23
Copy link
Contributor

This pull request adds two Buffer references to the
Request class. Whenever a request object is created
that has associated buffers, the buffers should be added
to these references so the java garbage collector does
not dispose of the buffers prematurely.

This is a more robust expansion on the idea first proposed by
@ggouaillardet, and further discussed in #369.

Fixes #369

Signed-off-by: Nathaniel Graham [email protected]

@hppritcha @jsquyres @ggouaillardet @osvegis

This pull request adds an arraylist of type Buffer to
the Request class.  Whenever a request object is created
that has associated buffers, the buffers should be added
to this array list so the java garbage collector does
not dispose of the buffers prematurely.

This is a more robust expansion on the idea first proposed by
@ggouaillardet

Fixes open-mpi#369

Signed-off-by: Nathaniel Graham <[email protected]>
MPI.check();
return new Comm(dupWithInfo(handle, info.handle));
MPI.check();
return new Comm(dupWithInfo(handle, info.handle));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor thing, and don't redo for this PR, but normally try to avoid whitespace changes in PRs that are not just whitespace changes.

@hppritcha
Copy link
Member

👍

@hppritcha hppritcha added the bug label Aug 20, 2015
@hppritcha hppritcha added this to the Open MPI v1.10.0 milestone Aug 20, 2015
@hppritcha
Copy link
Member

@nrgraham23 please push this fix back to v1.10.

Removing the ArrayList import which is no longer needed.
hppritcha added a commit that referenced this pull request Aug 22, 2015
@hppritcha hppritcha merged commit eb25c00 into open-mpi:master Aug 22, 2015
jsquyres pushed a commit to jsquyres/ompi that referenced this pull request Sep 19, 2016
@nrgraham23 nrgraham23 deleted the java_garbage_collection_bugfix branch February 10, 2017 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants