Mercurial > hg > truffle
diff src/share/vm/utilities/vmError.cpp @ 21820:fb677d6aebea
8062675: jmap is unable to display information about java processes and prints only pids
Summary: backout fix 8050808 which caused this regression and as requested.
Reviewed-by: hseigel
author | asaha |
---|---|
date | Mon, 10 Nov 2014 09:47:41 -0800 |
parents | b1cf34d57e78 |
children | 9a227eaac2dc |
line wrap: on
line diff
--- a/src/share/vm/utilities/vmError.cpp Thu Nov 06 09:39:49 2014 -0800 +++ b/src/share/vm/utilities/vmError.cpp Mon Nov 10 09:47:41 2014 -0800 @@ -22,7 +22,6 @@ * */ -#include <fcntl.h> #include "precompiled.hpp" #include "compiler/compileBroker.hpp" #include "gc_interface/collectedHeap.hpp" @@ -842,8 +841,7 @@ static int expand_and_open(const char* pattern, char* buf, size_t buflen, size_t pos) { int fd = -1; if (Arguments::copy_expand_pid(pattern, strlen(pattern), &buf[pos], buflen - pos)) { - // the O_EXCL flag will cause the open to fail if the file exists - fd = open(buf, O_RDWR | O_CREAT | O_EXCL, 0666); + fd = open(buf, O_RDWR | O_CREAT | O_TRUNC, 0666); } return fd; }