mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -1365,7 +1365,7 @@ void InstanceKlass::do_nonstatic_fields(FieldClosure* cl) {
|
|||
cl->do_field(&fd);
|
||||
}
|
||||
}
|
||||
FREE_C_HEAP_ARRAY(int, fields_sorted, mtClass);
|
||||
FREE_C_HEAP_ARRAY(int, fields_sorted);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2473,7 +2473,7 @@ void InstanceKlass::release_C_heap_structures() {
|
|||
|
||||
// deallocate the cached class file
|
||||
if (_cached_class_file != NULL) {
|
||||
os::free(_cached_class_file, mtClass);
|
||||
os::free(_cached_class_file);
|
||||
_cached_class_file = NULL;
|
||||
}
|
||||
|
||||
|
@ -2482,7 +2482,7 @@ void InstanceKlass::release_C_heap_structures() {
|
|||
// unreference array name derived from this class name (arrays of an unloaded
|
||||
// class can't be referenced anymore).
|
||||
if (_array_name != NULL) _array_name->decrement_refcount();
|
||||
if (_source_debug_extension != NULL) FREE_C_HEAP_ARRAY(char, _source_debug_extension, mtClass);
|
||||
if (_source_debug_extension != NULL) FREE_C_HEAP_ARRAY(char, _source_debug_extension);
|
||||
|
||||
assert(_total_instanceKlass_count >= 1, "Sanity check");
|
||||
Atomic::dec(&_total_instanceKlass_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue