提交 2e7d6ed4 编写于 作者: P phh

8234264: Incorrect 8047434 JDK 8 backport in 8219677

Summary: Reverse uses of fork_and_exec() second argument in vError.cpp.
Reviewed-by: sgehwolf, simonis
上级 d6982101
...@@ -1060,7 +1060,7 @@ void VMError::report_and_die() { ...@@ -1060,7 +1060,7 @@ void VMError::report_and_die() {
out.print_raw (cmd); out.print_raw (cmd);
out.print_raw_cr("\" ..."); out.print_raw_cr("\" ...");
if (os::fork_and_exec(cmd, true) < 0) { if (os::fork_and_exec(cmd) < 0) {
out.print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno); out.print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno);
} }
} }
...@@ -1147,7 +1147,7 @@ void VM_ReportJavaOutOfMemory::doit() { ...@@ -1147,7 +1147,7 @@ void VM_ReportJavaOutOfMemory::doit() {
#endif #endif
tty->print_cr("\"%s\"...", cmd); tty->print_cr("\"%s\"...", cmd);
if (os::fork_and_exec(cmd) < 0) { if (os::fork_and_exec(cmd, true) < 0) {
tty->print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno); tty->print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册