mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8149591: Prepare hotspot for GTest
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com> Co-authored-by: Stefan Sarne <stefan.sarne@oracle.com> Co-authored-by: Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com> Co-authored-by: Erik Helin <erik.helin@oracle.com> Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com> Reviewed-by: jwilhelm
This commit is contained in:
parent
fdc03a7cd8
commit
66686b8152
7 changed files with 145 additions and 63 deletions
|
@ -47,6 +47,12 @@
|
|||
|
||||
// Check core dump limit and report possible place where core can be found
|
||||
void os::check_dump_limit(char* buffer, size_t bufferSize) {
|
||||
if (!FLAG_IS_DEFAULT(CreateCoredumpOnCrash) && !CreateCoredumpOnCrash) {
|
||||
jio_snprintf(buffer, bufferSize, "CreateCoredumpOnCrash is disabled from command line");
|
||||
VMError::record_coredump_status(buffer, false);
|
||||
return;
|
||||
}
|
||||
|
||||
int n;
|
||||
struct rlimit rlim;
|
||||
bool success;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue