Skip to content

Commit

Permalink
Optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
labazhou2018 committed Jul 5, 2021
1 parent ff5474d commit ce42f40
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ public void setSize(final int s) {
this.byteBuffer.limit(this.size);
}

// @Override
// protected void finalize() {
// if (this.mappedFile != null) {
// this.release();
// }
// }

public synchronized void release() {
if (this.mappedFile != null) {
this.mappedFile.release();
Expand Down

0 comments on commit ce42f40

Please sign in to comment.