Skip to content

Instantly share code, notes, and snippets.

@aeisenberg
Created June 7, 2013 04:39
Show Gist options
  • Save aeisenberg/5727103 to your computer and use it in GitHub Desktop.
Save aeisenberg/5727103 to your computer and use it in GitHub Desktop.
Where's the memory leak?
public class ClosureWriter {
protected interface UseExistingReference {}
public void writeClosure(ClosureExpression expression) {
// create some byte-code
// ...
expression.setNodeMetaData(ClosureWriter.UseExistingReference.class,Boolean.TRUE);
// do some more byte-code writing
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment