hotspot/src/os/linux/vm/os_linux.cpp
changeset 27157 364276bc8d8b
parent 26704 36bff23b2c2e
child 27164 6523fa019ffa
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Fri Oct 03 13:56:18 2014 -0700
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Thu Oct 09 04:45:58 2014 -0700
@@ -5086,22 +5086,12 @@
 // This code originates from JDK's sysOpen and open64_w
 // from src/solaris/hpi/src/system_md.c
 
-#ifndef O_DELETE
-  #define O_DELETE 0x10000
-#endif
-
-// Open a file. Unlink the file immediately after open returns
-// if the specified oflag has the O_DELETE flag set.
-// O_DELETE is used only in j2se/src/share/native/java/util/zip/ZipFile.c
-
 int os::open(const char *path, int oflag, int mode) {
   if (strlen(path) > MAX_PATH - 1) {
     errno = ENAMETOOLONG;
     return -1;
   }
   int fd;
-  int o_delete = (oflag & O_DELETE);
-  oflag = oflag & ~O_DELETE;
 
   fd = ::open64(path, oflag, mode);
   if (fd == -1) return -1;
@@ -5154,9 +5144,6 @@
   }
 #endif
 
-  if (o_delete != 0) {
-    ::unlink(path);
-  }
   return fd;
 }