--- old/src/share/vm/logging/logFileOutput.cpp 2015-09-15 11:20:05.978623453 +0200 +++ new/src/share/vm/logging/logFileOutput.cpp 2015-09-15 11:20:05.874623450 +0200 @@ -41,7 +41,7 @@ char LogFileOutput::_vm_start_time_str[StartTimeBufferSize]; LogFileOutput::LogFileOutput(const char* name) - : LogFileStreamOutput(NULL), _name(os::strdup_check_oom(name, mtInternal)), + : LogFileStreamOutput(NULL), _name(os::strdup_check_oom(name, mtLogging)), _file_name(NULL), _archive_name(NULL), _archive_name_len(0), _current_size(0), _rotate_size(0), _current_file(1), _file_count(0), _rotation_lock(Mutex::leaf, "LogFileOutput rotation lock", true, Mutex::_safepoint_check_sometimes) { @@ -88,7 +88,7 @@ return true; } bool success = true; - char* opts = os::strdup_check_oom(options, mtInternal); + char* opts = os::strdup_check_oom(options, mtLogging); char* comma_pos; char* pos = opts; @@ -116,7 +116,7 @@ _file_count = static_cast(value); _file_count_max_digits = static_cast(log10(static_cast(_file_count)) + 1); _archive_name_len = 2 + strlen(_file_name) + _file_count_max_digits; - _archive_name = NEW_C_HEAP_ARRAY(char, _archive_name_len, mtOther); + _archive_name = NEW_C_HEAP_ARRAY(char, _archive_name_len, mtLogging); } else if (strcmp(FileSizeOptionKey, key) == 0) { size_t value = parse_value(value_str); if (value == SIZE_MAX || value > SIZE_MAX / K) { @@ -211,7 +211,7 @@ if (pid == NULL && timestamp == NULL) { // We found no place-holders, return the simple filename - return os::strdup_check_oom(file_name, mtOther); + return os::strdup_check_oom(file_name, mtLogging); } // At least one of the place-holders were found in the file_name @@ -253,7 +253,7 @@ // Allocate the new buffer, size it to hold all we want to put in there +1. size_t result_len = strlen(file_name) + first_len - first_replace_len + second_len - second_replace_len; - result = NEW_C_HEAP_ARRAY(char, result_len + 1, mtOther); + result = NEW_C_HEAP_ARRAY(char, result_len + 1, mtLogging); // Assemble the strings size_t file_name_pos = 0;