mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -326,7 +326,7 @@ bool FileMapInfo::init_from_file(int fd) {
|
|||
n = os::read(fd, _paths_misc_info, (unsigned int)info_size);
|
||||
if (n != info_size) {
|
||||
fail_continue("Unable to read the shared path info header.");
|
||||
FREE_C_HEAP_ARRAY(char, _paths_misc_info, mtClass);
|
||||
FREE_C_HEAP_ARRAY(char, _paths_misc_info);
|
||||
_paths_misc_info = NULL;
|
||||
return false;
|
||||
}
|
||||
|
@ -709,7 +709,7 @@ bool FileMapInfo::validate_header() {
|
|||
}
|
||||
|
||||
if (_paths_misc_info != NULL) {
|
||||
FREE_C_HEAP_ARRAY(char, _paths_misc_info, mtClass);
|
||||
FREE_C_HEAP_ARRAY(char, _paths_misc_info);
|
||||
_paths_misc_info = NULL;
|
||||
}
|
||||
return status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue