Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/java-native-access/jna
/ purge
Method
purge
src/com/sun/jna/Memory.java:64–66 ·
view source on GitHub ↗
Force cleanup of memory that has associated NIO Buffers which have been GC'd.
()
Source
from the content-addressed store, hash-verified
62
been GC'd.
63
*/
64
public
static
void
purge() {
65
buffers.clean();
66
}
67
68
/** Dispose of all allocated memory. */
69
public
static
void
disposeAll() {
Callers
3
testAutoFreeMemory
Method · 0.95
testAvoidGCWithExtantBuffer
Method · 0.95
gcRun
Method · 0.95
Calls
1
clean
Method · 0.65
Tested by
3
testAutoFreeMemory
Method · 0.76
testAvoidGCWithExtantBuffer
Method · 0.76
gcRun
Method · 0.76