8027434: "-XX:OnOutOfMemoryError" uses fork instead of vfork

Reviewed-by: dholmes, iklam
This commit is contained in:
Muthusamy Chinnathambi 2018-10-09 16:08:07 +05:30
parent cfb6fb66c2
commit cbe11130f5
7 changed files with 14 additions and 8 deletions

View file

@ -543,7 +543,7 @@ class os: AllStatic {
static char* do_you_want_to_debug(const char* message);
// run cmd in a separate process and return its exit code; or -1 on failures
static int fork_and_exec(char *cmd);
static int fork_and_exec(char *cmd, bool use_vfork_if_available = false);
// Call ::exit() on all platforms but Windows
static void exit(int num);