mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
8059586: hs_err report should treat redirected core pattern
Reviewed-by: dholmes, sla, stuefe
This commit is contained in:
parent
c4978df7aa
commit
bd3ea105b9
5 changed files with 82 additions and 9 deletions
|
@ -4673,7 +4673,7 @@ bool os::is_headless_jre() {
|
|||
// Get the default path to the core file
|
||||
// Returns the length of the string
|
||||
int os::get_core_path(char* buffer, size_t bufferSize) {
|
||||
int n = jio_snprintf(buffer, bufferSize, "/cores");
|
||||
int n = jio_snprintf(buffer, bufferSize, "/cores/core.%d", current_process_id());
|
||||
|
||||
// Truncate if theoretical string was longer than bufferSize
|
||||
n = MIN2(n, (int)bufferSize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue