7009975: Large file support broken in hs20-b04
Alan Bateman
Alan.Bateman at oracle.com
Tue Jan 4 11:01:25 PST 2011
The changes to remove the dependency on the HPI in hs20-b04 has broken
the large file support on Solaris. I think Ivan is on vacation at the
moment so I'm wondering if I could just push a small patch (via jprt of
course) to fix this. The patch just changes os::open (used by JVM_Open
which is why it impacts java.io) to use open64 on Solaris.
diff -r 36c186bcc085 src/os/solaris/vm/os_solaris.cpp
--- a/src/os/solaris/vm/os_solaris.cpp Mon Jan 03 14:09:11 2011 -0500
+++ b/src/os/solaris/vm/os_solaris.cpp Tue Jan 04 18:42:37 2011 +0000
@@ -5197,7 +5197,7 @@ int os::open(const char *path, int oflag
int o_delete = (oflag & O_DELETE);
oflag = oflag & ~O_DELETE;
- fd = ::open(path, oflag, mode);
+ fd = ::open64(path, oflag, mode);
if (fd == -1) return -1;
//If the open succeeded, the file might still be a directory
Thanks,
-Alan
More information about the hotspot-runtime-dev
mailing list