mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8060074: os::free() takes MemoryTrackingLevel but doesn't need it
Cleaned up unused arguments in os::free and it's callers. Reviewed-by: lfoltan, coleenp, ctornqvi, dholmes
This commit is contained in:
parent
6c1cf6ba45
commit
91dbd4f088
91 changed files with 354 additions and 354 deletions
|
@ -328,7 +328,7 @@ WB_END
|
|||
|
||||
// Free the memory allocated by NMTAllocTest
|
||||
WB_ENTRY(void, WB_NMTFree(JNIEnv* env, jobject o, jlong mem))
|
||||
os::free((void*)(uintptr_t)mem, mtTest);
|
||||
os::free((void*)(uintptr_t)mem);
|
||||
WB_END
|
||||
|
||||
WB_ENTRY(jlong, WB_NMTReserveMemory(JNIEnv* env, jobject o, jlong size))
|
||||
|
@ -754,7 +754,7 @@ WB_ENTRY(void, WB_SetStringVMFlag(JNIEnv* env, jobject o, jstring name, jstring
|
|||
env->ReleaseStringUTFChars(value, ccstrValue);
|
||||
}
|
||||
if (needFree) {
|
||||
FREE_C_HEAP_ARRAY(char, ccstrResult, mtInternal);
|
||||
FREE_C_HEAP_ARRAY(char, ccstrResult);
|
||||
}
|
||||
WB_END
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue