File tree Expand file tree Collapse file tree 3 files changed +518
-6
lines changed
Expand file tree Collapse file tree 3 files changed +518
-6
lines changed Original file line number Diff line number Diff line change 3838 </execution >
3939 </executions >
4040 </plugin >
41+ <plugin >
42+ <groupId >org.apache.maven.plugins</groupId >
43+ <artifactId >maven-compiler-plugin</artifactId >
44+ <configuration >
45+ <source >8</source >
46+ <target >8</target >
47+ </configuration >
48+ </plugin >
4149 </plugins >
4250 </build >
4351
Original file line number Diff line number Diff line change 2222 */
2323package com .sun .jna ;
2424
25+ import com .sun .jna .internal .Cleaner ;
26+ import com .sun .jna .internal .ConcurrentLongHashMap ;
27+
2528import java .io .Closeable ;
2629import java .lang .ref .Reference ;
2730import java .lang .ref .WeakReference ;
2831import java .nio .ByteBuffer ;
2932import java .util .ArrayList ;
3033import java .util .Collection ;
31- import java .util .Map ;
32- import java .util .concurrent .ConcurrentHashMap ;
33-
34- import com .sun .jna .internal .Cleaner ;
3534
3635/**
3736 * A <code>Pointer</code> to memory obtained from the native heap via a
5352 */
5453public class Memory extends Pointer implements Closeable {
5554 /** Keep track of all allocated memory so we can dispose of it before unloading. */
56- private static final Map < Long , Reference <Memory >> allocatedMemory =
57- new ConcurrentHashMap <>();
55+ private static final ConcurrentLongHashMap < Reference <Memory >> allocatedMemory =
56+ new ConcurrentLongHashMap <>();
5857
5958 private static final WeakMemoryHolder buffers = new WeakMemoryHolder ();
6059
You can’t perform that action at this time.
0 commit comments