MemoryAllocator implementations for MemoryUtil to use.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | MemoryManage.
Wraps a MemoryAllocator to track allocations and detect memory leaks. |
| private static class | MemoryManage.
stdlib memory allocator. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static MemoryUtil. |
| MemoryManage | back to summary |
|---|---|
| private MemoryManage() | |
| getInstance | back to summary |
|---|---|
| pack-priv static MemoryUtil. | |
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ConcurrentMap | |
| private final MemoryUtil. | |
| private final long[] | |
| private static final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> void | |
| public long | aligned_alloc(long alignment, long size)
Implements org. MemoryUtil#memAlignedAlloc.
|
| public void | aligned_free(long ptr)
Implements org. MemoryUtil#memAlignedFree.
|
| public long | calloc(long num, long size)
Implements org. MemoryUtil#memCalloc.
|
| public void | free(long ptr)
Implements org. MemoryUtil#memFree.
|
| public long | getAlignedAlloc()
Implements org. |
| public long | getAlignedFree()
Implements org. |
| public long | getCalloc()
Implements org. |
| public long | getFree()
Implements org. |
| public long | getMalloc()
Implements org. |
| public long | getRealloc()
Implements org. |
| public long | malloc(long size)
Implements org. MemoryUtil#memAlloc.
|
| public long | realloc(long ptr, long size)
Implements org. MemoryUtil#memRealloc.
|
| pack-priv static void | |
| pack-priv static void | report(MemoryUtil.
|
| private static void | |
| private static void | |
| private static void | |
| pack-priv static long | |
| private static void | trackAbort(long address, MemoryManage.
|
| private static void | |
| pack-priv static long | |
| private static void |
| ALLOCATIONS | back to summary |
|---|---|
| private static final ConcurrentMap<MemoryManage. | |
| allocator | back to summary |
|---|---|
| private final MemoryUtil. | |
| callbacks | back to summary |
|---|---|
| private final long[] callbacks | |
| THREADS | back to summary |
|---|---|
| private static final ConcurrentMap<Long, String> THREADS | |
| DebugAllocator | back to summary |
|---|---|
| pack-priv DebugAllocator(MemoryUtil. | |
| aggregate | back to summary |
|---|---|
| private static <T> void aggregate(T t, long size, Map<T, AtomicLong> map) | |
| aligned_alloc | back to summary |
|---|---|
| public long aligned_alloc(long alignment, long size) Implements org. Doc from org. Called by
| |
| aligned_free | back to summary |
|---|---|
| public void aligned_free(long ptr) Implements org. Doc from org. Called by
| |
| calloc | back to summary |
|---|---|
| public long calloc(long num, long size) Implements org. Doc from org. Called by
| |
| free | back to summary |
|---|---|
| public void free(long ptr) Implements org. Doc from org. Called by
| |
| getAlignedAlloc | back to summary |
|---|---|
| public long getAlignedAlloc() Implements org. Doc from org. Returns a pointer to the aligned_alloc function.
| |
| getAlignedFree | back to summary |
|---|---|
| public long getAlignedFree() Implements org. Doc from org. Returns a pointer to the aligned_free function.
| |
| getCalloc | back to summary |
|---|---|
| public long getCalloc() Implements org. Doc from org. Returns a pointer to the calloc function.
| |
| getFree | back to summary |
|---|---|
| public long getFree() Implements org. Doc from org. Returns a pointer to the free function.
| |
| getMalloc | back to summary |
|---|---|
| public long getMalloc() Implements org. Doc from org. Returns a pointer to the malloc function.
| |
| getRealloc | back to summary |
|---|---|
| public long getRealloc() Implements org. Doc from org. Returns a pointer to the realloc function.
| |
| malloc | back to summary |
|---|---|
| public long malloc(long size) Implements org. Doc from org. Called by
| |
| realloc | back to summary |
|---|---|
| public long realloc(long ptr, long size) Implements org. Doc from org. Called by
| |
| report | back to summary |
|---|---|
| pack-priv static void report(MemoryUtil. | |
| report | back to summary |
|---|---|
| pack-priv static void report(MemoryUtil. | |
| reportAll | back to summary |
|---|---|
| private static void reportAll(MemoryUtil. | |
| reportByMethod | back to summary |
|---|---|
| private static void reportByMethod(MemoryUtil. | |
| reportByStacktrace | back to summary |
|---|---|
| private static void reportByStacktrace(MemoryUtil. | |
| track | back to summary |
|---|---|
| pack-priv static long track(long address, long size) | |
| trackAbort | back to summary |
|---|---|
| private static void trackAbort(long address, MemoryManage. | |
| trackAbortPrint | back to summary |
|---|---|
| private static void trackAbortPrint(MemoryManage. | |
| untrack | back to summary |
|---|---|
| pack-priv static long untrack(long address) | |
| untrackAbort | back to summary |
|---|---|
| private static void untrackAbort(long address) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long | |
| pack-priv final long | |
| private final Object[] | |
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| private StackTraceElement[] | |
| public int |
| address | back to summary |
|---|---|
| pack-priv final long address | |
| size | back to summary |
|---|---|
| pack-priv final long size | |
| stacktrace | back to summary |
|---|---|
| private final Object[] stacktrace
| |
| threadId | back to summary |
|---|---|
| pack-priv final long threadId | |
| Allocation | back to summary |
|---|---|
| pack-priv Allocation(long address, long size, long threadId, Object[] stacktrace) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getElements | back to summary |
|---|---|
private StackTraceElement[] getElements()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final StackTraceElement[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int |
| elements | back to summary |
|---|---|
| pack-priv final StackTraceElement[] elements | |
| AllocationKey | back to summary |
|---|---|
| pack-priv AllocationKey(StackTraceElement[] elements) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Access | Constructor and Description |
|---|---|
| private |
| StdlibAllocator | back to summary |
|---|---|
| private StdlibAllocator() | |
| aligned_alloc | back to summary |
|---|---|
| public long aligned_alloc(long alignment, long size) Implements org. Doc from org. Called by
| |
| aligned_free | back to summary |
|---|---|
| public void aligned_free(long ptr) Implements org. Doc from org. Called by
| |
| calloc | back to summary |
|---|---|
| public long calloc(long num, long size) Implements org. Doc from org. Called by
| |
| free | back to summary |
|---|---|
| public void free(long ptr) Implements org. Doc from org. Called by
| |
| getAlignedAlloc | back to summary |
|---|---|
| public long getAlignedAlloc() Implements org. Doc from org. Returns a pointer to the aligned_alloc function.
| |
| getAlignedFree | back to summary |
|---|---|
| public long getAlignedFree() Implements org. Doc from org. Returns a pointer to the aligned_free function.
| |
| getCalloc | back to summary |
|---|---|
| public long getCalloc() Implements org. Doc from org. Returns a pointer to the calloc function.
| |
| getFree | back to summary |
|---|---|
| public long getFree() Implements org. Doc from org. Returns a pointer to the free function.
| |
| getMalloc | back to summary |
|---|---|
| public long getMalloc() Implements org. Doc from org. Returns a pointer to the malloc function.
| |
| getRealloc | back to summary |
|---|---|
| public long getRealloc() Implements org. Doc from org. Returns a pointer to the realloc function.
| |
| malloc | back to summary |
|---|---|
| public long malloc(long size) Implements org. Doc from org. Called by
| |
| realloc | back to summary |
|---|---|
| public long realloc(long ptr, long size) Implements org. Doc from org. Called by
| |