Skip to content

Commit

Permalink
SPVBlockStore: Remove mmap hack for Windows.
Browse files Browse the repository at this point in the history
It breaks on Java9 because it is using unofficial sun.* API.
  • Loading branch information
Andreas Schildbach committed Apr 1, 2018
1 parent 03f4045 commit 1700ec0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
4 changes: 0 additions & 4 deletions core/src/main/java/org/bitcoinj/store/SPVBlockStore.java
Expand Up @@ -287,10 +287,6 @@ public void setChainHead(StoredBlock chainHead) throws BlockStoreException {
public void close() throws BlockStoreException {
try {
buffer.force();
if (Utils.isWindows()) {
log.info("Windows mmap hack: Forcing buffer cleaning");
WindowsMMapHack.forceRelease(buffer);
}
buffer = null; // Allow it to be GCd and the underlying file mapping to go away.
randomAccessFile.close();
blockCache.clear();
Expand Down
39 changes: 0 additions & 39 deletions core/src/main/java/org/bitcoinj/store/WindowsMMapHack.java

This file was deleted.

0 comments on commit 1700ec0

Please sign in to comment.