8059586: hs_err report should treat redirected core pattern

Reviewed-by: dholmes, sla, stuefe
This commit is contained in:
Yasumasa Suenaga 2014-12-14 20:18:17 -05:00 committed by David Holmes
parent c4978df7aa
commit bd3ea105b9
5 changed files with 82 additions and 9 deletions

View file

@ -5979,6 +5979,9 @@ int os::get_core_path(char* buffer, size_t bufferSize) {
return 0;
}
jio_snprintf(buffer, bufferSize, "%s/core or core.%d",
p, current_process_id());
return strlen(buffer);
}