From Rajendra.Gutupalli at Sun.COM Mon Sep 1 03:31:48 2008 From: Rajendra.Gutupalli at Sun.COM (Rajendra Gutupalli) Date: Mon, 01 Sep 2008 16:01:48 +0530 Subject: FileRef.checkAccess(null) throws IAE in Win and NPE in Sol? Message-ID: <48BBC494.4010703@Sun.Com> Hi Alan, I started changing my test cases to sync with b94. I did a quick test with Path.checkAccess(null) and observed it throws IAE in windows and NPE in Solaris for the Argument null. Should it throw NPE in Windows? Windows: Exception in thread "main" java.lang.IllegalArgumentException at sun.nio.fs.WindowsPath.checkAccess(WindowsPath.java:726) at adhoc.CheckAccess.main(CheckAccess.java:15) Solaris: Exception in thread "main" java.lang.NullPointerException at sun.nio.fs.UnixPath.checkAccess(UnixPath.java:776) at TestAccess.main(TestAccess.java:7) Thanks Rajendra. From Alan.Bateman at Sun.COM Mon Sep 1 03:26:02 2008 From: Alan.Bateman at Sun.COM (Alan Bateman) Date: Mon, 01 Sep 2008 11:26:02 +0100 Subject: FileRef.checkAccess(null) throws IAE in Win and NPE in Sol? In-Reply-To: <48BBC494.4010703@Sun.Com> References: <48BBC494.4010703@Sun.Com> Message-ID: <48BBC33A.6060507@sun.com> Rajendra Gutupalli wrote: > Hi Alan, > > I started changing my test cases to sync with b94. I did a quick test > with Path.checkAccess(null) and observed it throws IAE in windows and > NPE in Solaris for the Argument null. > Should it throw NPE in Windows? Yes - thanks! Looks like this has been there for a while. Related to this, I need to do a pass over all these methods that are intended to be extended in the future to ensure that the right exceptions are specified. I see a few cases where IAE is incorrect or UOE is missing. -Alan. From alan.bateman at sun.com Mon Sep 1 04:50:42 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Mon, 01 Sep 2008 11:50:42 +0000 Subject: hg: nio/nio: 6737659: debug bundles are empty Message-ID: <20080901115043.0EE10DFEA@hg.openjdk.java.net> Changeset: 46a989ab9329 Author: ohair Date: 2008-08-17 09:56 -0700 URL: http://hg.openjdk.java.net/nio/nio/rev/46a989ab9329 6737659: debug bundles are empty Summary: Build order issue with debug build, caused final debug bundle to be empty. Reviewed-by: tbell ! Makefile From alan.bateman at sun.com Mon Sep 1 04:51:57 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Mon, 01 Sep 2008 11:51:57 +0000 Subject: hg: nio/nio/jdk: 9 new changesets Message-ID: <20080901115343.D617DDFFB@hg.openjdk.java.net> Changeset: 7afa7314d883 Author: emcmanus Date: 2008-08-27 11:03 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/7afa7314d883 5041784: (reflect) generic signature methods needlessly return generic arrays Reviewed-by: darcy ! src/share/classes/sun/reflect/generics/factory/CoreReflectionFactory.java + test/java/lang/reflect/Generics/TestPlainArrayNotGeneric.java Changeset: 2c65a59dd48d Author: ksrini Date: 2008-08-26 10:21 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/2c65a59dd48d 6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems Summary: provided error reporting interfaces to other java subsystems that the launcher uses. Reviewed-by: darcy ! make/java/jli/Makefile ! make/java/jli/mapfile-vers ! src/share/bin/emessages.h ! src/share/bin/java.c ! src/share/bin/java.h ! src/solaris/bin/java_md.c ! src/windows/bin/java_md.c Changeset: d6b41950987b Author: sherman Date: 2008-08-27 10:12 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/d6b41950987b 4849617: (cs)Revise Charset spec to allow '+' in names Summary: Update the spec and code to accept '+' as a charset name character Reviewed-by: alanb ! src/share/classes/java/nio/charset/Charset.java ! src/share/classes/sun/nio/cs/ext/ExtendedCharsets.java ! src/share/classes/sun/nio/cs/standard-charsets + test/sun/nio/cs/CheckICNE.java Changeset: 126760548921 Author: sherman Date: 2008-08-27 10:28 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/126760548921 Merge Changeset: 1fd164a28a44 Author: alanb Date: 2008-08-29 17:31 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/1fd164a28a44 Merge Changeset: db29fae1ea6c Author: alanb Date: 2008-08-29 17:33 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/db29fae1ea6c test/java/net/Socket/TrafficClass.java failing ! src/share/classes/sun/nio/ch/SocketChannelImpl.java Changeset: 7818299bbe35 Author: alanb Date: 2008-09-01 11:22 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/7818299bbe35 API bug: FileVisitor#postVisitDirectory needs to be invoked when I/O error occurs during iteration of directory Rename AbstractFileVisitor to SimpleFileVisitor ! make/java/nio/FILES_java.gmk - src/share/classes/java/nio/file/AbstractFileVisitor.java ! src/share/classes/java/nio/file/FileTreeWalker.java ! src/share/classes/java/nio/file/FileVisitResult.java ! src/share/classes/java/nio/file/FileVisitor.java ! src/share/classes/java/nio/file/Files.java + src/share/classes/java/nio/file/SimpleFileVisitor.java ! src/share/sample/nio/file/Chmod.java ! src/share/sample/nio/file/Copy.java ! src/share/sample/nio/file/WatchDir.java ! test/demo/nio/ZipFileSystem/Sanity.java ! test/java/nio/file/Files/Misc.java ! test/java/nio/file/Files/PrintFileTree.java ! test/java/nio/file/Files/SkipSiblings.java ! test/java/nio/file/Files/TerminateWalk.java ! test/java/nio/file/TestUtil.java Changeset: c7be96c521f2 Author: alanb Date: 2008-09-01 11:57 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/c7be96c521f2 Add references from java.io.File's most problematic methods to Path Rename File#getFileRef conversion method to toPath ! src/share/classes/java/io/File.java ! src/share/classes/java/nio/file/Path.java ! src/share/classes/java/nio/file/package-info.java ! test/java/nio/channels/AsynchronousFileChannel/Basic.java ! test/java/nio/channels/AsynchronousFileChannel/CustomThreadPool.java ! test/java/nio/channels/AsynchronousFileChannel/Lock.java ! test/java/nio/file/Files/ContentType.java Changeset: be2cbe9f2701 Author: alanb Date: 2008-09-01 12:16 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/be2cbe9f2701 Optional syntax risks ambiguity with patterns containing colon ! src/share/classes/java/nio/file/FileSystem.java ! src/share/classes/java/nio/file/Files.java ! src/share/classes/java/nio/file/Path.java ! src/share/classes/java/nio/file/spi/AbstractPath.java ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/ZipFileSystem.java ! src/solaris/classes/sun/nio/fs/UnixFileSystem.java ! src/windows/classes/sun/nio/fs/WindowsFileSystem.java ! test/java/nio/file/PathMatcher/Basic.java ! test/java/nio/file/spi/TestProvider.java From alan.bateman at sun.com Mon Sep 1 04:55:06 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Mon, 01 Sep 2008 11:55:06 +0000 Subject: hg: nio/nio/langtools: 6508981: cleanup file separator handling in JavacFileManager Message-ID: <20080901115507.DEF2AE000@hg.openjdk.java.net> Changeset: e571266ae14f Author: jjg Date: 2008-08-26 14:52 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/e571266ae14f 6508981: cleanup file separator handling in JavacFileManager Reviewed-by: mcimadamore ! src/share/classes/com/sun/tools/javac/file/JavacFileManager.java + src/share/classes/com/sun/tools/javac/file/RelativePath.java ! src/share/classes/com/sun/tools/javac/file/SymbolArchive.java ! src/share/classes/com/sun/tools/javac/file/ZipArchive.java ! src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java ! src/share/classes/com/sun/tools/javac/file/ZipFileIndexArchive.java ! src/share/classes/com/sun/tools/javadoc/DocletInvoker.java ! src/share/classes/javax/tools/StandardLocation.java + test/tools/javac/6508981/TestInferBinaryName.java + test/tools/javac/6508981/p/A.java ! test/tools/javac/T6725036.java From alan.bateman at sun.com Tue Sep 2 12:24:34 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 02 Sep 2008 19:24:34 +0000 Subject: hg: nio/nio/jdk: 10 new changesets Message-ID: <20080902192640.221DAD0F2@hg.openjdk.java.net> Changeset: be8edf5f6b62 Author: alanb Date: 2008-09-01 19:57 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/be8edf5f6b62 Fixed inconsistent usage of IAE and OUE in file system API ! src/share/classes/java/nio/channels/AsynchronousFileChannel.java ! src/share/classes/java/nio/channels/FileChannel.java ! src/share/classes/java/nio/file/FileRef.java ! src/share/classes/java/nio/file/Path.java ! src/share/classes/java/nio/file/Watchable.java ! src/share/classes/java/nio/file/spi/FileSystemProvider.java ! src/share/classes/sun/nio/fs/AbstractPoller.java ! src/share/classes/sun/nio/fs/PollingWatchService.java ! src/solaris/classes/sun/nio/fs/LinuxWatchService.java ! src/solaris/classes/sun/nio/fs/SolarisWatchService.java ! src/solaris/classes/sun/nio/fs/UnixChannelFactory.java ! src/solaris/classes/sun/nio/fs/UnixCopyFile.java ! src/solaris/classes/sun/nio/fs/UnixFileModeAttribute.java ! src/solaris/classes/sun/nio/fs/UnixPath.java ! src/windows/classes/sun/nio/fs/WindowsChannelFactory.java ! src/windows/classes/sun/nio/fs/WindowsFileCopy.java ! src/windows/classes/sun/nio/fs/WindowsPath.java ! src/windows/classes/sun/nio/fs/WindowsSecurityDescriptor.java ! src/windows/classes/sun/nio/fs/WindowsWatchService.java ! test/java/nio/file/Path/CopyAndMove.java ! test/java/nio/file/Path/Misc.java ! test/java/nio/file/Path/SBC.java ! test/java/nio/file/WatchService/Basic.java Changeset: 5d278726f0dc Author: chegar Date: 2008-08-29 17:46 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/5d278726f0dc 6576763: Thread constructors throw undocumented NPE for null name Summary: update javadoc to specify NPE as well as fix minor bug in implementation. Reviewed-by: alanb ! src/share/classes/java/lang/Thread.java + test/java/lang/ThreadGroup/NullThreadName.java Changeset: dc604a6da888 Author: swamyv Date: 2008-08-29 14:33 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/dc604a6da888 6614052: jhat fails to read heap dump > 2GB. Summary: Modified the jhat code to use long for unsigned int. This is a forward port of changes from Kevin Walls. Reviewed-by: jjh ! src/share/classes/com/sun/tools/hat/internal/parser/HprofReader.java Changeset: f9cf71f806eb Author: alanb Date: 2008-08-31 18:32 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/f9cf71f806eb 6570619: (bf) DirectByteBuffer.get/put(byte[]) does not scale well Reviewed-by: iris ! make/java/java/mapfile-vers ! src/share/classes/java/nio/Bits.java ! src/share/classes/java/nio/Direct-X-Buffer.java ! src/share/native/java/nio/Bits.c Changeset: 343253d05123 Author: alanb Date: 2008-08-31 18:39 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/343253d05123 4640544: New I/O: Complete socket-channel functionality Reviewed-by: iris, sherman, chegar ! make/java/nio/FILES_java.gmk ! make/java/nio/Makefile ! make/java/nio/mapfile-linux ! make/java/nio/mapfile-solaris ! make/mksample/nio/Makefile + make/mksample/nio/multicast/Makefile ! src/share/classes/java/net/NetworkInterface.java + src/share/classes/java/net/ProtocolFamily.java + src/share/classes/java/net/SocketOption.java + src/share/classes/java/net/StandardProtocolFamily.java + src/share/classes/java/net/StandardSocketOption.java ! src/share/classes/java/nio/channels/DatagramChannel.java + src/share/classes/java/nio/channels/MembershipKey.java + src/share/classes/java/nio/channels/MulticastChannel.java + src/share/classes/java/nio/channels/NetworkChannel.java ! src/share/classes/java/nio/channels/ServerSocketChannel.java ! src/share/classes/java/nio/channels/SocketChannel.java ! src/share/classes/java/nio/channels/exceptions + src/share/classes/java/nio/channels/package-info.java - src/share/classes/java/nio/channels/package.html ! src/share/classes/java/nio/channels/spi/SelectorProvider.java ! src/share/classes/sun/nio/ch/DatagramChannelImpl.java ! src/share/classes/sun/nio/ch/DatagramSocketAdaptor.java + src/share/classes/sun/nio/ch/ExtendedSocketOption.java + src/share/classes/sun/nio/ch/MembershipKeyImpl.java + src/share/classes/sun/nio/ch/MembershipRegistry.java ! src/share/classes/sun/nio/ch/Net.java - src/share/classes/sun/nio/ch/OptionAdaptor.java + src/share/classes/sun/nio/ch/OptionKey.java ! src/share/classes/sun/nio/ch/SelectorProviderImpl.java ! src/share/classes/sun/nio/ch/ServerSocketAdaptor.java ! src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java ! src/share/classes/sun/nio/ch/SocketAdaptor.java ! src/share/classes/sun/nio/ch/SocketChannelImpl.java - src/share/classes/sun/nio/ch/SocketOpts.java - src/share/classes/sun/nio/ch/SocketOptsImpl.java - src/share/classes/sun/nio/ch/exceptions ! src/share/native/java/net/net_util.c ! src/share/native/java/net/net_util.h + src/share/native/sun/nio/ch/genSocketOptionRegistry.c + src/share/sample/nio/multicast/MulticastAddress.java + src/share/sample/nio/multicast/Reader.java + src/share/sample/nio/multicast/Sender.java ! src/solaris/native/java/net/net_util_md.c ! src/solaris/native/sun/nio/ch/DatagramChannelImpl.c ! src/solaris/native/sun/nio/ch/FileKey.c ! src/solaris/native/sun/nio/ch/Net.c ! src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c ! src/solaris/native/sun/nio/ch/SocketChannelImpl.c ! src/solaris/native/sun/nio/ch/nio_util.h ! src/windows/native/java/net/net_util_md.c ! src/windows/native/sun/nio/ch/DatagramChannelImpl.c ! src/windows/native/sun/nio/ch/Net.c ! src/windows/native/sun/nio/ch/ServerSocketChannelImpl.c ! src/windows/native/sun/nio/ch/SocketChannelImpl.c + test/java/nio/channels/DatagramChannel/BasicMulticastTests.java + test/java/nio/channels/DatagramChannel/MulticastSendReceiveTests.java + test/java/nio/channels/DatagramChannel/NetworkConfiguration.java + test/java/nio/channels/DatagramChannel/SocketOptionTests.java + test/java/nio/channels/ServerSocketChannel/SocketOptionTests.java + test/java/nio/channels/SocketChannel/SocketOptionTests.java ! test/java/nio/channels/TestUtil.java + test/java/nio/channels/etc/NetworkChannelTests.java Changeset: 0a427d0e70a7 Author: emcmanus Date: 2008-09-01 17:11 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/0a427d0e70a7 6731410: JMXServiceURL cannot use @ConstructorProperties for compatibility reasons Reviewed-by: dfuchs ! src/share/classes/javax/management/MXBean.java ! src/share/classes/javax/management/remote/JMXServiceURL.java ! test/javax/management/mxbean/JMXServiceURLTest.java Changeset: 3e9d85711a1a Author: alanb Date: 2008-09-01 20:15 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/3e9d85711a1a Merge ! make/java/nio/FILES_java.gmk ! make/java/nio/Makefile ! make/java/nio/mapfile-linux ! make/java/nio/mapfile-solaris ! make/mksample/nio/Makefile ! src/share/classes/java/net/NetworkInterface.java ! src/share/classes/java/nio/Bits.java ! src/share/classes/java/nio/channels/Channels.java ! src/share/classes/java/nio/channels/DatagramChannel.java ! src/share/classes/java/nio/channels/ServerSocketChannel.java ! src/share/classes/java/nio/channels/SocketChannel.java ! src/share/classes/java/nio/channels/exceptions ! src/share/classes/java/nio/channels/package-info.java ! src/share/classes/java/nio/channels/spi/SelectorProvider.java ! src/share/classes/sun/nio/ch/DatagramChannelImpl.java ! src/share/classes/sun/nio/ch/DatagramSocketAdaptor.java ! src/share/classes/sun/nio/ch/Net.java ! src/share/classes/sun/nio/ch/ServerSocketAdaptor.java ! src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java ! src/share/classes/sun/nio/ch/SocketAdaptor.java ! src/share/classes/sun/nio/ch/SocketChannelImpl.java ! src/share/native/java/net/net_util.c ! src/share/sample/nio/multicast/Reader.java ! src/solaris/native/java/net/net_util_md.c ! src/solaris/native/sun/nio/ch/DatagramChannelImpl.c ! src/solaris/native/sun/nio/ch/Net.c ! src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c ! src/solaris/native/sun/nio/ch/SocketChannelImpl.c ! src/windows/native/java/net/net_util_md.c ! src/windows/native/sun/nio/ch/Net.c Changeset: 24326979a036 Author: alanb Date: 2008-09-02 15:51 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/24326979a036 Permission check in Path#register insufficient when FILE_TREE modifier used (win only) SecurityException in Path#register when granted permission to read directory (sol10 only) ! src/share/classes/sun/nio/fs/PollingWatchService.java ! src/windows/classes/sun/nio/fs/WindowsPath.java + test/java/nio/file/WatchService/WithSecurityManager.java + test/java/nio/file/WatchService/denyAll.policy + test/java/nio/file/WatchService/grantDirAndOneLevel.policy + test/java/nio/file/WatchService/grantDirAndTree.policy + test/java/nio/file/WatchService/grantDirOnly.policy Changeset: 1d1d66438d11 Author: emcmanus Date: 2008-09-02 14:14 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/1d1d66438d11 6405862: Allow CompositeType to have zero items 6737133: Compilation failure of test/javax/management/eventService/LeaseManagerDeadlockTest.java 6737140: Javadoc of some throw clauses of MBeanServer and MBeanServerConnection is garbled 6737143: createMBean of MBeanServer should acquire 2 extra throw clauses present in MBeanServerConnection Reviewed-by: dfuchs ! src/share/classes/javax/management/MBeanServer.java ! src/share/classes/javax/management/MBeanServerConnection.java ! src/share/classes/javax/management/openmbean/CompositeType.java ! test/javax/management/eventService/LeaseManagerDeadlockTest.java Changeset: ac40bd69f869 Author: alanb Date: 2008-09-02 16:30 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/ac40bd69f869 Merge From alan.bateman at sun.com Tue Sep 2 12:28:21 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 02 Sep 2008 19:28:21 +0000 Subject: hg: nio/nio/langtools: 6597471: unused imports in javax.tools.JavaCompiler; ... Message-ID: <20080902192824.2BA84D0F8@hg.openjdk.java.net> Changeset: 5e89c4ca637c Author: jjg Date: 2008-08-29 11:10 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/5e89c4ca637c 6597471: unused imports in javax.tools.JavaCompiler 6597531: unused imports and unused private const. in com.sun.tools.javac.Server.java Reviewed-by: mcimadamore Contributed-by: davide.angelocola at gmail.com ! src/share/classes/com/sun/tools/javac/Server.java ! src/share/classes/com/sun/tools/javac/api/JavacScope.java ! src/share/classes/com/sun/tools/javac/api/WrappingJavaFileManager.java ! src/share/classes/com/sun/tools/javac/code/Attribute.java ! src/share/classes/com/sun/tools/javac/code/Type.java ! src/share/classes/com/sun/tools/javac/code/Types.java ! src/share/classes/com/sun/tools/javac/comp/Enter.java ! src/share/classes/com/sun/tools/javac/comp/Env.java ! src/share/classes/com/sun/tools/javac/comp/Infer.java ! src/share/classes/com/sun/tools/javac/jvm/Items.java ! src/share/classes/com/sun/tools/javac/jvm/Pool.java ! src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java ! src/share/classes/com/sun/tools/javac/model/FilteredMemberList.java ! src/share/classes/com/sun/tools/javac/parser/DocCommentScanner.java ! src/share/classes/com/sun/tools/javac/parser/EndPosParser.java ! src/share/classes/com/sun/tools/javac/processing/JavacFiler.java ! src/share/classes/com/sun/tools/javac/processing/JavacMessager.java ! src/share/classes/com/sun/tools/javac/processing/JavacRoundEnvironment.java ! src/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java ! src/share/classes/com/sun/tools/javac/processing/ServiceProxy.java ! src/share/classes/com/sun/tools/javac/sym/CreateSymbols.java ! src/share/classes/com/sun/tools/javac/tree/JCTree.java ! src/share/classes/com/sun/tools/javac/tree/TreeCopier.java ! src/share/classes/com/sun/tools/javac/tree/TreeInfo.java ! src/share/classes/com/sun/tools/javac/util/Context.java From Rajendra.Gutupalli at Sun.COM Wed Sep 3 22:42:57 2008 From: Rajendra.Gutupalli at Sun.COM (Rajendra Gutupalli) Date: Thu, 04 Sep 2008 11:12:57 +0530 Subject: FileStoreSpaceAttributeView#readAttributes("totalSpace") does not return totalSpace Message-ID: <48BF7561.6020502@sun.com> Hi Alan, Spec for FileStoreSpaceAttributeView#readAttributes says "totalSpace/usableSpace/unallocatedSpace" can be retrieved by passing the respective string parameter, but it does not return as expected. I just saw the code to see what happening for this input I think comparison might be like this. -- if (attribute.equals("total")) { ++ if (attribute.equals("totalSapce") Could you please tell me if this is correct. Thanks Rajendra. From Alan.Bateman at Sun.COM Thu Sep 4 01:14:30 2008 From: Alan.Bateman at Sun.COM (Alan Bateman) Date: Thu, 04 Sep 2008 09:14:30 +0100 Subject: FileStoreSpaceAttributeView#readAttributes("totalSpace") does not return totalSpace In-Reply-To: <48BF8FCF.7000806@univ-mlv.fr> References: <48BF7561.6020502@sun.com> <48BF8FCF.7000806@univ-mlv.fr> Message-ID: <48BF98E6.2030403@sun.com> R?mi Forax wrote: > Rajendra Gutupalli a ?crit : >> Hi Alan, >> >> Spec for FileStoreSpaceAttributeView#readAttributes says >> "totalSpace/usableSpace/unallocatedSpace" can be retrieved by passing >> the respective string parameter, but it does not return as expected. >> I just saw the code to see what happening for this input I think >> comparison might be like this. >> >> -- if (attribute.equals("total")) { >> ++ if (attribute.equals("totalSapce") >> >> Could you please tell me if this is correct. >> >> Thanks >> Rajendra. > it's not correct, you made a typo :) > totalSapce <=> totalSpace > > by the way using String here is really error prone. Yes, it can be error prone as you have to get the name and the type right. The typesafe way to do this (for this example) is to use Attributes.readFileStoreSpaceAttributes. We'd like to have the Attributes class define methods to cover the common cases for the well defined attributes. Once you go beyond this, and need to access highly provider or platform specific attributes, then the choice is to make use of a provider/platform specific attribute view that provides typed access or else to use the methods that provide dynamic access. Each has their downsides. -Alan. From Rajendra.Gutupalli at Sun.COM Thu Sep 4 01:32:42 2008 From: Rajendra.Gutupalli at Sun.COM (Rajendra Gutupalli) Date: Thu, 04 Sep 2008 14:02:42 +0530 Subject: FileStoreSpaceAttributeView#readAttributes("totalSpace") does not return totalSpace In-Reply-To: <48BF8FCF.7000806@univ-mlv.fr> References: <48BF7561.6020502@sun.com> <48BF8FCF.7000806@univ-mlv.fr> Message-ID: <48BF9D2A.9050304@sun.com> R?mi Forax wrote: > Rajendra Gutupalli a ?crit : >> Hi Alan, >> >> Spec for FileStoreSpaceAttributeView#readAttributes says >> "totalSpace/usableSpace/unallocatedSpace" can be retrieved by passing >> the respective string parameter, but it does not return as expected. >> I just saw the code to see what happening for this input I think >> comparison might be like this. >> >> -- if (attribute.equals("total")) { >> ++ if (attribute.equals("totalSapce") >> >> Could you please tell me if this is correct. >> >> Thanks >> Rajendra. > it's not correct, you made a typo :) > totalSapce <=> totalSpace Thanks R?mi , it was typo in my mail but actually I was referring to following code at line#77 http://hg.openjdk.java.net/nio/nio/jdk/file/be2cbe9f2701/src/share/classes/sun/nio/fs/AbstractFileStoreSpaceAttributeView.java where it should be attribute.equals("totalSpace") instead of attribute.equals("total") according to spec. Thanks Rajendra. > > by the way using String here is really error prone. > > R?mi > From Alan.Bateman at Sun.COM Thu Sep 4 04:27:20 2008 From: Alan.Bateman at Sun.COM (Alan Bateman) Date: Thu, 04 Sep 2008 12:27:20 +0100 Subject: FileStoreSpaceAttributeView#readAttributes("totalSpace") does not return totalSpace In-Reply-To: <48BFAA4F.2040600@univ-mlv.fr> References: <48BF7561.6020502@sun.com> <48BF8FCF.7000806@univ-mlv.fr> <48BF98E6.2030403@sun.com> <48BFAA4F.2040600@univ-mlv.fr> Message-ID: <48BFC618.1020908@sun.com> R?mi Forax wrote: > You can use a marker intreface to force third party to implement it. > Something like that: > > interface FileStoreSpaceAttributeKey { > // marker interface > } > class FileStoreSpaceAttributeView { > V readAttributes(FileStoreSpaceAttributeKey key) { > ... > } > } > > // in third party code > public static final FileStoreSpaceAttributeKey > NUMBER_OF_INODES=... > Let's explore this to see how it might work. If I read your mail correctly then the "third party" is the provider implementation and NUMBER_OF_INODES is defined by the provider. Assuming I have this right then the application would use the key and so would require the provider to be present at both compile time and runtime. -Alan. From alan.bateman at sun.com Sat Sep 6 00:28:50 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Sat, 06 Sep 2008 07:28:50 +0000 Subject: hg: nio/nio/jdk: 11 new changesets Message-ID: <20080906073211.24F49D379@hg.openjdk.java.net> Changeset: 00ea8fc81867 Author: emcmanus Date: 2008-09-03 14:31 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/00ea8fc81867 6744132: Spurious failures from test/javax/management/MBeanInfo/NotificationInfoTest.java Reviewed-by: dfuchs ! test/javax/management/MBeanInfo/NotificationInfoTest.java Changeset: 9145ff046bb4 Author: dfuchs Date: 2008-09-04 14:46 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/9145ff046bb4 5072476: RFE: support cascaded (federated) MBean Servers 6299231: Add support for named MBean Servers Summary: New javax.management.namespace package. Reviewed-by: emcmanus ! make/docs/CORE_PKGS.gmk ! src/share/classes/com/sun/jmx/defaults/JmxProperties.java ! src/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java + src/share/classes/com/sun/jmx/interceptor/DispatchInterceptor.java + src/share/classes/com/sun/jmx/interceptor/DomainDispatchInterceptor.java ! src/share/classes/com/sun/jmx/interceptor/MBeanServerInterceptor.java + src/share/classes/com/sun/jmx/interceptor/MBeanServerInterceptorSupport.java - src/share/classes/com/sun/jmx/interceptor/MBeanServerSupport.java + src/share/classes/com/sun/jmx/interceptor/NamespaceDispatchInterceptor.java ! src/share/classes/com/sun/jmx/interceptor/SingleMBeanForwarder.java ! src/share/classes/com/sun/jmx/mbeanserver/JmxMBeanServer.java ! src/share/classes/com/sun/jmx/mbeanserver/MXBeanLookup.java ! src/share/classes/com/sun/jmx/mbeanserver/Repository.java ! src/share/classes/com/sun/jmx/mbeanserver/SunJmxMBeanServer.java ! src/share/classes/com/sun/jmx/mbeanserver/Util.java + src/share/classes/com/sun/jmx/namespace/DomainInterceptor.java + src/share/classes/com/sun/jmx/namespace/HandlerInterceptor.java + src/share/classes/com/sun/jmx/namespace/JMXNamespaceUtils.java + src/share/classes/com/sun/jmx/namespace/NamespaceInterceptor.java + src/share/classes/com/sun/jmx/namespace/ObjectNameRouter.java + src/share/classes/com/sun/jmx/namespace/RoutingConnectionProxy.java + src/share/classes/com/sun/jmx/namespace/RoutingMBeanServerConnection.java + src/share/classes/com/sun/jmx/namespace/RoutingProxy.java + src/share/classes/com/sun/jmx/namespace/RoutingServerProxy.java + src/share/classes/com/sun/jmx/namespace/package.html + src/share/classes/com/sun/jmx/namespace/serial/DefaultRewritingProcessor.java + src/share/classes/com/sun/jmx/namespace/serial/IdentityProcessor.java + src/share/classes/com/sun/jmx/namespace/serial/JMXNamespaceContext.java + src/share/classes/com/sun/jmx/namespace/serial/RewritingProcessor.java + src/share/classes/com/sun/jmx/namespace/serial/RoutingOnlyProcessor.java + src/share/classes/com/sun/jmx/namespace/serial/SerialRewritingProcessor.java + src/share/classes/com/sun/jmx/namespace/serial/package.html ! src/share/classes/com/sun/jmx/remote/internal/ServerNotifForwarder.java ! src/share/classes/com/sun/jmx/remote/util/EventClientConnection.java ! src/share/classes/javax/management/InstanceNotFoundException.java ! src/share/classes/javax/management/MBeanPermission.java ! src/share/classes/javax/management/MBeanServer.java ! src/share/classes/javax/management/MBeanServerDelegate.java ! src/share/classes/javax/management/MBeanServerFactory.java ! src/share/classes/javax/management/ObjectName.java ! src/share/classes/javax/management/event/EventClient.java ! src/share/classes/javax/management/event/EventClientDelegate.java + src/share/classes/javax/management/namespace/JMXDomain.java + src/share/classes/javax/management/namespace/JMXNamespace.java + src/share/classes/javax/management/namespace/JMXNamespaceMBean.java + src/share/classes/javax/management/namespace/JMXNamespacePermission.java + src/share/classes/javax/management/namespace/JMXNamespaceView.java + src/share/classes/javax/management/namespace/JMXNamespaces.java + src/share/classes/javax/management/namespace/JMXRemoteNamespace.java + src/share/classes/javax/management/namespace/JMXRemoteNamespaceMBean.java + src/share/classes/javax/management/namespace/MBeanServerConnectionWrapper.java + src/share/classes/javax/management/namespace/MBeanServerSupport.java + src/share/classes/javax/management/namespace/VirtualEventManager.java + src/share/classes/javax/management/namespace/package-info.java ! src/share/classes/javax/management/remote/JMXConnectorFactory.java ! src/share/classes/javax/management/remote/rmi/RMIConnectionImpl.java + test/javax/management/MBeanServerFactory/NamedMBeanServerTest.java ! test/javax/management/ObjectName/ApplyWildcardTest.java + test/javax/management/namespace/DomainCreationTest.java + test/javax/management/namespace/EventWithNamespaceControlTest.java + test/javax/management/namespace/EventWithNamespaceTest.java + test/javax/management/namespace/ExportNamespaceTest.java + test/javax/management/namespace/JMXDomainTest.java + test/javax/management/namespace/JMXNamespaceSecurityTest.java + test/javax/management/namespace/JMXNamespaceTest.java + test/javax/management/namespace/JMXNamespaceViewTest.java + test/javax/management/namespace/JMXNamespacesTest.java + test/javax/management/namespace/JMXRemoteNamespaceTest.java + test/javax/management/namespace/JMXRemoteTargetNamespace.java + test/javax/management/namespace/LazyDomainTest.java + test/javax/management/namespace/MXBeanRefTest.java + test/javax/management/namespace/NamespaceController.java + test/javax/management/namespace/NamespaceControllerMBean.java + test/javax/management/namespace/NamespaceCreationTest.java + test/javax/management/namespace/NamespaceNotificationsTest.java + test/javax/management/namespace/NullDomainObjectNameTest.java + test/javax/management/namespace/NullObjectNameTest.java + test/javax/management/namespace/QueryNamesTest.java + test/javax/management/namespace/RemoveNotificationListenerTest.java + test/javax/management/namespace/RoutingServerProxyTest.java + test/javax/management/namespace/SerialParamProcessorTest.java + test/javax/management/namespace/SourceNamespaceTest.java + test/javax/management/namespace/VirtualMBeanNotifTest.java + test/javax/management/namespace/VirtualMBeanTest.java + test/javax/management/namespace/VirtualNamespaceQueryTest.java + test/javax/management/namespace/VirtualPropsTest.java + test/javax/management/namespace/Wombat.java + test/javax/management/namespace/WombatMBean.java + test/javax/management/namespace/namespace.policy Changeset: 00ff896d2346 Author: alanb Date: 2008-09-04 19:08 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/00ff896d2346 Merge ! make/docs/CORE_PKGS.gmk - src/share/classes/com/sun/jmx/interceptor/MBeanServerSupport.java Changeset: 2152af7eea94 Author: alanb Date: 2008-09-04 19:14 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/2152af7eea94 Temporary solution to get fstatat working on x64 ! src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c Changeset: a4aabd5cc63e Author: alanb Date: 2008-09-04 19:18 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/a4aabd5cc63e Fixed wording for how SeekableByteChannel may behave when a channel to a file opened for append ! src/share/classes/java/nio/channels/SeekableByteChannel.java Changeset: c8a6c23e6a46 Author: alanb Date: 2008-09-04 19:29 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/c8a6c23e6a46 Minor typos and spec fixes. ! src/share/classes/java/nio/file/CopyOption.java ! src/share/classes/java/nio/file/OpenOption.java ! src/share/classes/java/nio/file/SecureDirectoryStream.java ! src/share/classes/java/nio/file/attribute/AclFileAttributeView.java ! src/share/classes/java/nio/file/attribute/AttributeView.java ! src/share/classes/java/nio/file/attribute/DosFileAttributeView.java ! src/share/classes/java/nio/file/attribute/FileStoreSpaceAttributeView.java ! src/share/classes/java/nio/file/attribute/NamedAttributeView.java ! src/share/classes/java/nio/file/attribute/package-info.java Changeset: 1656ecd7df67 Author: alanb Date: 2008-09-04 19:30 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/1656ecd7df67 ReadOnlyFileSystemException should be UOE ! src/share/classes/java/nio/file/ReadOnlyFileSystemException.java Changeset: c8be72770826 Author: alanb Date: 2008-09-05 12:02 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/c8be72770826 FileStoreAttributeView#readAttributes(String) fails to match specified attribute names NamedAttributeView#setAttribute should work like the write method ! src/share/classes/java/nio/file/attribute/NamedAttributeView.java ! src/share/classes/sun/nio/fs/AbstractAclFileAttributeView.java ! src/share/classes/sun/nio/fs/AbstractBasicFileAttributeView.java ! src/share/classes/sun/nio/fs/AbstractFileStoreSpaceAttributeView.java ! src/share/classes/sun/nio/fs/AbstractNamedAttributeView.java ! src/share/classes/sun/nio/fs/FileOwnerAttributeViewImpl.java ! src/solaris/classes/sun/nio/fs/LinuxDosFileAttributeView.java ! src/solaris/classes/sun/nio/fs/UnixFileAttributeViews.java ! src/windows/classes/sun/nio/fs/WindowsFileAttributeViews.java ! test/java/nio/file/attribute/FileStoreSpaceAttributeView/Basic.java Changeset: 3e07ae4ad6f0 Author: alanb Date: 2008-09-05 12:59 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/3e07ae4ad6f0 Update to zip demo provider to allow dynamic access to zip/JAR file attributes Contributed-by: Rajendra.Gutupalli ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/JarFileAttributeView.java ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/JarFileAttributes.java ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/ZipFileAttributeView.java ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/ZipFileBasicAttributeView.java ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/ZipFilePath.java ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/ZipFileStore.java ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/ZipFileStream.java ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/ZipFileSystem.java ! test/demo/nio/ZipFileSystem/Sanity.java Changeset: 72842ca92802 Author: alanb Date: 2008-09-05 18:47 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/72842ca92802 First installation of temporary file support ! src/share/classes/java/nio/file/StandardOpenOption.java ! src/solaris/classes/sun/nio/fs/UnixChannelFactory.java ! src/windows/classes/sun/nio/fs/WindowsChannelFactory.java ! src/windows/classes/sun/nio/fs/WindowsConstants.java + test/java/nio/file/Path/DeleteOnClose.java + test/java/nio/file/Path/delete_on_close.sh Changeset: 23c3f91494e2 Author: alanb Date: 2008-09-05 20:29 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/23c3f91494e2 Added Windows specific open options to test extensibility. FileSystem#getNameMatcher should throw UOE when invoked with unknown syntax ! make/java/nio/FILES_java.gmk + src/share/classes/com/sun/nio/file/ExtendedOpenOption.java ! src/share/classes/java/nio/file/FileSystem.java ! src/share/classes/java/nio/file/Files.java ! src/share/classes/sun/nio/fs/PollingWatchService.java ! src/solaris/classes/sun/nio/fs/UnixFileSystem.java ! src/solaris/classes/sun/nio/fs/UnixSecureDirectoryStream.java ! src/windows/classes/sun/nio/fs/WindowsChannelFactory.java ! src/windows/classes/sun/nio/fs/WindowsFileSystem.java ! src/windows/classes/sun/nio/fs/WindowsFileSystemProvider.java ! test/java/nio/file/Path/SBC.java ! test/java/nio/file/PathMatcher/Basic.java From alan.bateman at sun.com Sat Sep 6 00:33:44 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Sat, 06 Sep 2008 07:33:44 +0000 Subject: hg: nio/nio/langtools: 6743107: clean up use of static caches in file manager Message-ID: <20080906073347.4BFDDD37E@hg.openjdk.java.net> Changeset: ceaa6549687a Author: jjg Date: 2008-09-03 10:46 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/ceaa6549687a 6743107: clean up use of static caches in file manager Reviewed-by: mcimadamore + src/share/classes/com/sun/tools/javac/file/CacheFSInfo.java + src/share/classes/com/sun/tools/javac/file/FSInfo.java ! src/share/classes/com/sun/tools/javac/file/JavacFileManager.java ! src/share/classes/com/sun/tools/javac/file/Paths.java ! src/share/classes/com/sun/tools/javac/main/Main.java From alan.bateman at sun.com Wed Sep 10 13:14:25 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Wed, 10 Sep 2008 20:14:25 +0000 Subject: hg: nio/nio: 2 new changesets Message-ID: <20080910201425.56227D81F@hg.openjdk.java.net> Changeset: 143c1abedb7d Author: xdono Date: 2008-08-28 11:05 -0700 URL: http://hg.openjdk.java.net/nio/nio/rev/143c1abedb7d Added tag jdk7-b34 for changeset 46a989ab9329 ! .hgtags Changeset: 52148b82cfff Author: martin Date: 2008-09-08 17:10 -0700 URL: http://hg.openjdk.java.net/nio/nio/rev/52148b82cfff 6746055: Spelling error in README-builds.html Reviewed-by: ohair ! README-builds.html From alan.bateman at sun.com Wed Sep 10 13:14:53 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Wed, 10 Sep 2008 20:14:53 +0000 Subject: hg: nio/nio/corba: Added tag jdk7-b34 for changeset 0a812b9824e5 Message-ID: <20080910201454.D0D68D824@hg.openjdk.java.net> Changeset: 3867c4d14a5b Author: xdono Date: 2008-08-28 11:05 -0700 URL: http://hg.openjdk.java.net/nio/nio/corba/rev/3867c4d14a5b Added tag jdk7-b34 for changeset 0a812b9824e5 ! .hgtags From alan.bateman at sun.com Wed Sep 10 13:16:02 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Wed, 10 Sep 2008 20:16:02 +0000 Subject: hg: nio/nio/hotspot: 51 new changesets Message-ID: <20080910201740.EADF8D829@hg.openjdk.java.net> Changeset: d95b224e9f17 Author: kamg Date: 2008-07-28 14:07 -0400 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/d95b224e9f17 6721093: -XX:AppendRatio=N not supported Summary: Add mechanism to ignore unsupported flags for a set period of time Reviewed-by: acorn, never, coleenp ! src/os/linux/vm/os_linux.cpp ! src/os/solaris/vm/os_solaris.cpp ! src/os/windows/vm/os_windows.cpp ! src/share/vm/classfile/javaClasses.cpp ! src/share/vm/includeDB_core ! src/share/vm/memory/universe.cpp ! src/share/vm/runtime/arguments.cpp ! src/share/vm/runtime/arguments.hpp ! src/share/vm/runtime/init.cpp ! src/share/vm/runtime/java.cpp ! src/share/vm/runtime/java.hpp ! src/share/vm/runtime/os.cpp ! src/share/vm/runtime/os.hpp ! src/share/vm/runtime/thread.cpp ! src/share/vm/runtime/threadLocalStorage.cpp ! src/share/vm/runtime/threadLocalStorage.hpp ! src/share/vm/runtime/vmStructs.cpp ! src/share/vm/services/threadService.cpp Changeset: 4395df5b73d3 Author: coleenp Date: 2008-07-30 15:06 -0400 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/4395df5b73d3 Merge Changeset: 524eca34ea76 Author: kvn Date: 2008-07-03 18:02 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/524eca34ea76 6684714: Optimize EA Connection Graph build performance Summary: switch on EA by default, optimize Connection Graph construction Reviewed-by: rasbold, never ! src/share/vm/compiler/oopMap.cpp ! src/share/vm/compiler/oopMap.hpp ! src/share/vm/opto/bytecodeInfo.cpp ! src/share/vm/opto/c2_globals.hpp ! src/share/vm/opto/compile.cpp ! src/share/vm/opto/escape.cpp ! src/share/vm/opto/escape.hpp Changeset: 4a4c365f777d Author: kvn Date: 2008-07-11 12:19 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/4a4c365f777d Merge ! src/share/vm/compiler/oopMap.cpp ! src/share/vm/compiler/oopMap.hpp ! src/share/vm/opto/bytecodeInfo.cpp ! src/share/vm/opto/c2_globals.hpp ! src/share/vm/opto/compile.cpp ! src/share/vm/opto/escape.cpp ! src/share/vm/opto/escape.hpp Changeset: 9b66e6287f4a Author: rasbold Date: 2008-07-16 10:08 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/9b66e6287f4a 6707044: uncommon_trap of ifnull bytecode leaves garbage on expression stack Summary: Remove call to repush_if_args() Reviewed-by: kvn, jrose ! src/share/vm/opto/parse2.cpp Changeset: 02a35ad4adf8 Author: kvn Date: 2008-07-16 16:04 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/02a35ad4adf8 6723160: Nightly failure: Error: meet not symmetric Summary: Add missing _instance_id settings and other EA fixes. Reviewed-by: rasbold ! src/share/vm/adlc/formssel.cpp ! src/share/vm/opto/callnode.cpp ! src/share/vm/opto/cfgnode.cpp ! src/share/vm/opto/compile.cpp ! src/share/vm/opto/escape.cpp ! src/share/vm/opto/macro.cpp ! src/share/vm/opto/macro.hpp ! src/share/vm/opto/memnode.cpp ! src/share/vm/opto/node.hpp ! src/share/vm/opto/type.cpp + test/compiler/6724218/Test.java Changeset: 18aab3cdd513 Author: rasbold Date: 2008-07-21 13:37 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/18aab3cdd513 6726504: handle do_ifxxx calls in parser more uniformly Summary: make do_ifnull() handling similar to do_if() Reviewed-by: jrose, kvn ! src/share/vm/opto/parse.hpp ! src/share/vm/opto/parse2.cpp Changeset: 910a4cb98e9e Author: never Date: 2008-07-25 09:07 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/910a4cb98e9e 6717457: Internal Error (src/share/vm/code/relocInfo.hpp:1089) Reviewed-by: kvn ! src/cpu/x86/vm/stubGenerator_x86_32.cpp ! src/cpu/x86/vm/stubGenerator_x86_64.cpp Changeset: 6ca61c728c2d Author: never Date: 2008-07-25 11:32 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/6ca61c728c2d 6712835: Server compiler fails with assertion (loop_count < K,"infinite loop in PhaseIterGVN::transform") Reviewed-by: kvn ! src/share/vm/ci/ciMethodBlocks.cpp ! src/share/vm/opto/idealGraphPrinter.cpp ! src/share/vm/opto/ifnode.cpp + test/compiler/6712835/Test6712835.java Changeset: 020a0b730379 Author: never Date: 2008-07-25 15:54 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/020a0b730379 6700047: C2 failed in idom_no_update Summary: partial peeling shouldn't place clones into loop Reviewed-by: kvn ! src/share/vm/opto/loopopts.cpp + test/compiler/6700047/Test6700047.java Changeset: be7facf71163 Author: kvn Date: 2008-07-25 16:03 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/be7facf71163 6729552: jvm98 crashes with SS12 built jdk on Solaris X64 fastdebug version Summary: SS12 C++ tripped over new templates usage in instanceKlass.cpp. Reviewed-by: never ! make/solaris/makefiles/fastdebug.make Changeset: b0fe4deeb9fb Author: kvn Date: 2008-07-28 17:12 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/b0fe4deeb9fb 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.") Summary: Escape Analysis fixes. Reviewed-by: never, rasbold ! src/share/vm/opto/c2_globals.hpp ! src/share/vm/opto/compile.cpp ! src/share/vm/opto/escape.cpp ! src/share/vm/opto/escape.hpp ! src/share/vm/opto/lcm.cpp ! src/share/vm/opto/loopopts.cpp ! src/share/vm/opto/macro.cpp ! src/share/vm/opto/memnode.cpp ! src/share/vm/opto/memnode.hpp ! src/share/vm/opto/superword.cpp ! src/share/vm/runtime/arguments.cpp ! test/compiler/6646019/Test.java ! test/compiler/6689060/Test.java ! test/compiler/6695810/Test.java + test/compiler/6726999/Test.java Changeset: 3e333d6f35dd Author: rasbold Date: 2008-07-29 14:48 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/3e333d6f35dd 6730192: expression stack wrong at deoptimization point Summary: add safepoint before popping expression stack, not after Reviewed-by: kvn ! src/share/vm/opto/parse2.cpp Changeset: ef72a36b968e Author: kvn Date: 2008-07-30 09:54 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/ef72a36b968e Merge ! src/share/vm/runtime/arguments.cpp Changeset: 4c5fa80d85da Author: kvn Date: 2008-07-31 13:42 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/4c5fa80d85da Merge ! src/share/vm/runtime/arguments.cpp Changeset: 40b69ca33f4b Author: kvn Date: 2008-07-31 15:47 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/40b69ca33f4b 6732312: Switch off executing Escape Analysis by default Summary: Switch off executing Escape Analysis by default for now Reviewed-by: rasbold ! src/share/vm/opto/c2_globals.hpp Changeset: 54499b980c23 Author: swamyv Date: 2008-07-29 13:54 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar Summary: Removed maf-1_0.jar and jlfg-1_0.jar files. Reviewed-by: poonam, jjh ! agent/make/Makefile ! agent/make/bugspot.bat ! agent/make/build.xml ! agent/make/hsdb.bat ! agent/make/hsdb.sh ! agent/make/saenv.bat ! agent/make/saenv.sh ! agent/make/saenv64.bat ! agent/make/saenv64.sh + agent/src/share/classes/com/sun/java/swing/action/AboutAction.java + agent/src/share/classes/com/sun/java/swing/action/ActionManager.java + agent/src/share/classes/com/sun/java/swing/action/ActionUtilities.java + agent/src/share/classes/com/sun/java/swing/action/AlignCenterAction.java + agent/src/share/classes/com/sun/java/swing/action/AlignLeftAction.java + agent/src/share/classes/com/sun/java/swing/action/AlignRightAction.java + agent/src/share/classes/com/sun/java/swing/action/ApplyAction.java + agent/src/share/classes/com/sun/java/swing/action/BackAction.java + agent/src/share/classes/com/sun/java/swing/action/CancelAction.java + agent/src/share/classes/com/sun/java/swing/action/DelegateAction.java + agent/src/share/classes/com/sun/java/swing/action/ExitAction.java + agent/src/share/classes/com/sun/java/swing/action/FileMenu.java + agent/src/share/classes/com/sun/java/swing/action/FinishAction.java + agent/src/share/classes/com/sun/java/swing/action/HelpAction.java + agent/src/share/classes/com/sun/java/swing/action/HelpMenu.java + agent/src/share/classes/com/sun/java/swing/action/NewAction.java + agent/src/share/classes/com/sun/java/swing/action/NextAction.java + agent/src/share/classes/com/sun/java/swing/action/OkAction.java + agent/src/share/classes/com/sun/java/swing/action/OpenAction.java + agent/src/share/classes/com/sun/java/swing/action/SaveAction.java + agent/src/share/classes/com/sun/java/swing/action/SaveAsAction.java + agent/src/share/classes/com/sun/java/swing/action/StateChangeAction.java + agent/src/share/classes/com/sun/java/swing/action/ViewMenu.java + agent/src/share/classes/com/sun/java/swing/ui/CommonMenuBar.java + agent/src/share/classes/com/sun/java/swing/ui/CommonToolBar.java + agent/src/share/classes/com/sun/java/swing/ui/CommonUI.java + agent/src/share/classes/com/sun/java/swing/ui/OkCancelButtonPanel.java + agent/src/share/classes/com/sun/java/swing/ui/OkCancelDialog.java + agent/src/share/classes/com/sun/java/swing/ui/SplashScreen.java + agent/src/share/classes/com/sun/java/swing/ui/StatusBar.java + agent/src/share/classes/com/sun/java/swing/ui/TabsDlg.java + agent/src/share/classes/com/sun/java/swing/ui/ToggleActionPropertyChangeListener.java + agent/src/share/classes/com/sun/java/swing/ui/WizardDlg.java + agent/src/share/classes/images/toolbarButtonGraphics/development/Server16.gif + agent/src/share/classes/images/toolbarButtonGraphics/development/Server24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/About16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/About24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Delete16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Delete24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Find16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Help16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Help24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/History16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/History24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Information16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Information24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/New16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/New24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Open16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Open24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Save16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Save24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/SaveAs16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/SaveAs24.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/Zoom16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/ZoomIn16.gif + agent/src/share/classes/images/toolbarButtonGraphics/general/ZoomIn24.gif + agent/src/share/classes/images/toolbarButtonGraphics/navigation/Down16.gif + agent/src/share/classes/images/toolbarButtonGraphics/navigation/Up16.gif + agent/src/share/classes/images/toolbarButtonGraphics/text/AlignCenter16.gif + agent/src/share/classes/images/toolbarButtonGraphics/text/AlignCenter24.gif + agent/src/share/classes/images/toolbarButtonGraphics/text/AlignLeft16.gif + agent/src/share/classes/images/toolbarButtonGraphics/text/AlignLeft24.gif + agent/src/share/classes/images/toolbarButtonGraphics/text/AlignRight16.gif + agent/src/share/classes/images/toolbarButtonGraphics/text/AlignRight24.gif - agent/src/share/lib/jlfgr-1_0.jar - agent/src/share/lib/maf-1_0.jar Changeset: c7e8144ef65e Author: dcubed Date: 2008-07-30 14:41 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/c7e8144ef65e Merge - agent/src/share/lib/jlfgr-1_0.jar - agent/src/share/lib/maf-1_0.jar Changeset: 610674f963d2 Author: dcubed Date: 2008-07-31 22:34 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/610674f963d2 Merge - agent/src/share/lib/jlfgr-1_0.jar - agent/src/share/lib/maf-1_0.jar Changeset: 7f601f7c9b48 Author: martin Date: 2008-07-31 18:50 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/7f601f7c9b48 6731726: jmap -permstat reports only 50-60% of permgen memory usage. Reviewed-by: swamyv, martin Contributed-by: yamauchi at google.com ! agent/src/share/classes/sun/jvm/hotspot/tools/PermStat.java Changeset: f31ba9518910 Author: dcubed Date: 2008-07-31 22:40 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/f31ba9518910 Merge Changeset: 12eea04c8b06 Author: jmasa Date: 2008-07-09 15:08 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/12eea04c8b06 6672698: mangle_unused_area() should not remangle the entire heap at each collection. Summary: Maintain a high water mark for the allocations in a space and mangle only up to that high water mark. Reviewed-by: ysr, apetrusenko ! src/share/vm/gc_implementation/concurrentMarkSweep/binaryTreeDictionary.cpp ! src/share/vm/gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.cpp ! src/share/vm/gc_implementation/concurrentMarkSweep/freeBlockDictionary.hpp ! src/share/vm/gc_implementation/concurrentMarkSweep/freeChunk.hpp ! src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep ! src/share/vm/gc_implementation/includeDB_gc_parNew ! src/share/vm/gc_implementation/includeDB_gc_parallelScavenge ! src/share/vm/gc_implementation/includeDB_gc_shared ! src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp ! src/share/vm/gc_implementation/parNew/parNewGeneration.cpp ! src/share/vm/gc_implementation/parallelScavenge/asPSYoungGen.cpp ! src/share/vm/gc_implementation/parallelScavenge/cardTableExtension.cpp ! src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp ! src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp ! src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp ! src/share/vm/gc_implementation/parallelScavenge/psMarkSweepDecorator.cpp ! src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp ! src/share/vm/gc_implementation/parallelScavenge/psOldGen.hpp ! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp ! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.hpp ! src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp ! src/share/vm/gc_implementation/parallelScavenge/psYoungGen.cpp ! src/share/vm/gc_implementation/parallelScavenge/psYoungGen.hpp ! src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp ! src/share/vm/gc_implementation/shared/mutableNUMASpace.hpp ! src/share/vm/gc_implementation/shared/mutableSpace.cpp ! src/share/vm/gc_implementation/shared/mutableSpace.hpp + src/share/vm/gc_implementation/shared/spaceDecorator.cpp + src/share/vm/gc_implementation/shared/spaceDecorator.hpp ! src/share/vm/includeDB_core ! src/share/vm/includeDB_features ! src/share/vm/memory/defNewGeneration.cpp ! src/share/vm/memory/defNewGeneration.hpp ! src/share/vm/memory/dump.cpp ! src/share/vm/memory/genCollectedHeap.cpp ! src/share/vm/memory/genCollectedHeap.hpp ! src/share/vm/memory/genMarkSweep.cpp ! src/share/vm/memory/generation.cpp ! src/share/vm/memory/generation.hpp ! src/share/vm/memory/space.cpp ! src/share/vm/memory/space.hpp ! src/share/vm/runtime/globals.hpp ! src/share/vm/utilities/globalDefinitions.hpp Changeset: 15dd2594d08e Author: jcoomes Date: 2008-07-11 16:11 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/15dd2594d08e 6718283: existing uses of *_FORMAT_W() were broken by 6521491 Reviewed-by: ysr, pbk ! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp Changeset: f88815ca1af1 Author: jcoomes Date: 2008-07-11 16:11 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/f88815ca1af1 6483129: par compact assertion failure (new_top > bottom) Summary: avoid computing the dense prefix if a space is empty Reviewed-by: pbk, tonyp ! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp Changeset: 2214b226b7f0 Author: jcoomes Date: 2008-07-11 16:11 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/2214b226b7f0 6724367: par compact could clear less young gen summary data Reviewed-by: jmasa, apetrusenko ! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp Changeset: 9d6a3a6891f8 Author: iveresov Date: 2008-07-14 04:12 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/9d6a3a6891f8 6720130: NUMA allocator: The linux version should search for libnuma.so.1 Summary: Search for libnuma.so.1 on Linux and liblgrp.so.1 on Solaris. Reviewed-by: jmasa ! src/os/linux/vm/os_linux.cpp ! src/os/solaris/vm/os_solaris.cpp Changeset: d6340ab4105b Author: iveresov Date: 2008-07-17 10:26 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/d6340ab4105b 6723228: NUMA allocator: assert(lgrp_id != -1, "No lgrp_id set") 6723229: NUMA allocator: assert(lgrp_num > 0, "There should be at least one locality group") Summary: The fix takes care of the assertion triggered during TLAB resizing after reconfiguration. Also it now handles a defect in the topology graph, in which a single leaf node doesn't have memory. Reviewed-by: jmasa ! src/os/solaris/vm/os_solaris.cpp ! src/share/vm/gc_implementation/shared/gcUtil.hpp ! src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp ! src/share/vm/gc_implementation/shared/mutableNUMASpace.hpp Changeset: 850fdf70db2b Author: jmasa Date: 2008-07-28 15:30 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/850fdf70db2b Merge ! src/os/linux/vm/os_linux.cpp ! src/os/solaris/vm/os_solaris.cpp ! src/share/vm/gc_implementation/concurrentMarkSweep/binaryTreeDictionary.cpp ! src/share/vm/gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.cpp ! src/share/vm/gc_implementation/concurrentMarkSweep/freeBlockDictionary.hpp ! src/share/vm/gc_implementation/concurrentMarkSweep/freeChunk.hpp ! src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep ! src/share/vm/gc_implementation/includeDB_gc_parallelScavenge ! src/share/vm/gc_implementation/includeDB_gc_shared ! src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp ! src/share/vm/gc_implementation/parNew/parNewGeneration.cpp ! src/share/vm/gc_implementation/parallelScavenge/asPSYoungGen.cpp ! src/share/vm/gc_implementation/parallelScavenge/cardTableExtension.cpp ! src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp ! src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp ! src/share/vm/gc_implementation/parallelScavenge/psMarkSweepDecorator.cpp ! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp ! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.hpp ! src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp ! src/share/vm/gc_implementation/parallelScavenge/psYoungGen.cpp ! src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp ! src/share/vm/gc_implementation/shared/mutableNUMASpace.hpp ! src/share/vm/gc_implementation/shared/mutableSpace.cpp ! src/share/vm/gc_implementation/shared/mutableSpace.hpp ! src/share/vm/includeDB_core ! src/share/vm/memory/defNewGeneration.cpp ! src/share/vm/memory/defNewGeneration.hpp ! src/share/vm/memory/dump.cpp ! src/share/vm/memory/genCollectedHeap.cpp ! src/share/vm/memory/genCollectedHeap.hpp ! src/share/vm/memory/genMarkSweep.cpp ! src/share/vm/memory/generation.cpp ! src/share/vm/memory/generation.hpp ! src/share/vm/memory/space.cpp ! src/share/vm/memory/space.hpp ! src/share/vm/runtime/globals.hpp ! src/share/vm/utilities/globalDefinitions.hpp Changeset: b7f01ad69d30 Author: jmasa Date: 2008-08-04 12:11 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/b7f01ad69d30 Merge - agent/src/share/lib/jlfgr-1_0.jar - agent/src/share/lib/maf-1_0.jar ! src/os/linux/vm/os_linux.cpp ! src/os/solaris/vm/os_solaris.cpp ! src/share/vm/includeDB_core Changeset: 818a18cd69a8 Author: jmasa Date: 2008-07-30 11:54 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/818a18cd69a8 6730514: assertion failure in mangling code when expanding by 0 bytes Summary: An expansion by 0 bytes was not anticipated when the assertion was composed. Reviewed-by: jjh, jcoomes, apetrusenko ! make/windows/makefiles/defs.make ! src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp ! src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp ! src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp ! src/share/vm/gc_implementation/shared/spaceDecorator.cpp ! src/share/vm/memory/compactingPermGenGen.cpp ! src/share/vm/memory/compactingPermGenGen.hpp ! src/share/vm/memory/generation.cpp ! src/share/vm/memory/generation.hpp Changeset: e8cf9b1f7c93 Author: jmasa Date: 2008-08-04 12:15 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/e8cf9b1f7c93 Merge Changeset: 6f17a7c9f8b4 Author: xlu Date: 2008-08-01 15:12 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/6f17a7c9f8b4 6719981: Update Hotspot Windows os_win32 for windows XP 64 bit and windows 2008 Reviewed-by: dholmes, kamg ! src/os/windows/vm/os_windows.cpp Changeset: f7e6d42d9323 Author: xlu Date: 2008-08-01 15:18 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/f7e6d42d9323 6618886: Anonymous objects can be destructed immediately and so should not be used Reviewed-by: dholmes, kamg ! src/os/solaris/vm/osThread_solaris.cpp Changeset: 4fa67937726c Author: trims Date: 2008-08-10 13:13 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/4fa67937726c Merge - agent/src/share/lib/jlfgr-1_0.jar - agent/src/share/lib/maf-1_0.jar Changeset: aa8f54688692 Author: trims Date: 2008-08-10 21:31 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/aa8f54688692 Merge - agent/src/share/lib/jlfgr-1_0.jar - agent/src/share/lib/maf-1_0.jar ! src/share/vm/runtime/arguments.cpp Changeset: 79276d1b7e50 Author: trims Date: 2008-08-10 21:58 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/79276d1b7e50 6735720: Bump the HS14 build number to 03 Summary: Update Hotspot 14 build number to 03 Reviewed-by: jcoomes ! make/hotspot_version Changeset: 4852f4a82e58 Author: ohair Date: 2008-08-14 11:18 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/4852f4a82e58 6724668: Hotspot: Official change to Sun Studio 12 compilers on Solaris Summary: Moving to SS12. Builds with SS11 still work, the compiler comes from your PATH when building hotspot. Reviewed-by: tbell ! make/jprt.config ! make/solaris/makefiles/sparcWorks.make Changeset: f3a650d8df24 Author: thurka Date: 2008-08-14 21:05 +0200 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/f3a650d8df24 6625846: Export system property java.version via jvmstat Summary: java.version added to property_counters_ss array Reviewed-by: swamyv ! src/share/vm/runtime/statSampler.cpp Changeset: 7f9b895777f8 Author: thurka Date: 2008-08-15 05:55 +0200 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/7f9b895777f8 Merge Changeset: a2de7dfbfcf0 Author: swamyv Date: 2008-08-12 12:44 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/a2de7dfbfcf0 6718125: SA: jmap prints negative size for MaxNewHeap. Summary: Fixed printing of negative value for MaxNewHeap. Reviewed-by: jjh ! agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java Changeset: 44aea0a1e099 Author: swamyv Date: 2008-08-15 12:05 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/44aea0a1e099 Merge Changeset: 9199f248b0ee Author: ysr Date: 2008-08-14 17:58 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/9199f248b0ee 6722112: CMS: Incorrect encoding of overflown object arrays during concurrent precleaning Summary: When an object array overflows during precleaning, we should have been marking the entire array dirty, not just its first card. Reviewed-by: jmasa, poonam, tonyp ! src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp Changeset: 92e12124e774 Author: ysr Date: 2008-08-20 01:30 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/92e12124e774 Merge Changeset: 51ae48d8072f Author: kamg Date: 2008-08-13 08:56 -0400 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/51ae48d8072f 6736718: more copyright headers wrong Summary: Changed license headers to GPL Reviewed-by: tonyp, rasbold ! make/hotspot_distro ! test/compiler/6646019/Test.java ! test/compiler/6689060/Test.java ! test/compiler/6695810/Test.java Changeset: 3529d0e8d09c Author: xlu Date: 2008-08-15 10:08 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/3529d0e8d09c 6608862: segv in JvmtiEnvBase::check_for_periodic_clean_up() Reviewed-by: dholmes, dcubed, jcoomes ! src/share/vm/runtime/thread.cpp Changeset: 6e76352f1f62 Author: xlu Date: 2008-08-18 14:53 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/6e76352f1f62 6459085: naked pointer subtractions in class data sharing code Reviewed-by: jcoomes ! make/linux/makefiles/vm.make ! src/share/vm/memory/dump.cpp Changeset: 70c4fb9cf899 Author: apangin Date: 2008-08-19 06:02 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/70c4fb9cf899 Merge - agent/src/share/lib/jlfgr-1_0.jar - agent/src/share/lib/maf-1_0.jar ! src/share/vm/memory/dump.cpp ! test/compiler/6646019/Test.java ! test/compiler/6689060/Test.java ! test/compiler/6695810/Test.java Changeset: d7bb383033d6 Author: apangin Date: 2008-08-20 12:24 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/d7bb383033d6 Merge Changeset: 9f7cf8db35b8 Author: trims Date: 2008-08-20 20:24 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/9f7cf8db35b8 Merge Changeset: 5251a9cd8eb8 Author: jcoomes Date: 2008-08-27 15:41 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/5251a9cd8eb8 6742207: jdk7 32-bit windows build failed running pack200 Summary: 6730514 inadvertently disabled perm gen expansion; reenable Reviewed-by: ysr ! src/share/vm/memory/compactingPermGenGen.cpp ! src/share/vm/memory/compactingPermGenGen.hpp Changeset: 5967ae2171f6 Author: xdono Date: 2008-08-28 11:05 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/5967ae2171f6 Added tag jdk7-b34 for changeset 5251a9cd8eb8 ! .hgtags From alan.bateman at sun.com Wed Sep 10 13:19:21 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Wed, 10 Sep 2008 20:19:21 +0000 Subject: hg: nio/nio/jaxp: Added tag jdk7-b34 for changeset 01facdf8cabd Message-ID: <20080910201922.AE199D82E@hg.openjdk.java.net> Changeset: eac46d1eb7f0 Author: xdono Date: 2008-08-28 11:05 -0700 URL: http://hg.openjdk.java.net/nio/nio/jaxp/rev/eac46d1eb7f0 Added tag jdk7-b34 for changeset 01facdf8cabd ! .hgtags From alan.bateman at sun.com Wed Sep 10 13:19:52 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Wed, 10 Sep 2008 20:19:52 +0000 Subject: hg: nio/nio/jaxws: Added tag jdk7-b34 for changeset 7a9f629cd957 Message-ID: <20080910201953.E4839D833@hg.openjdk.java.net> Changeset: b0f01c2508b6 Author: xdono Date: 2008-08-28 11:05 -0700 URL: http://hg.openjdk.java.net/nio/nio/jaxws/rev/b0f01c2508b6 Added tag jdk7-b34 for changeset 7a9f629cd957 ! .hgtags From alan.bateman at sun.com Wed Sep 10 13:20:27 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Wed, 10 Sep 2008 20:20:27 +0000 Subject: hg: nio/nio/jdk: 25 new changesets Message-ID: <20080910202522.938B7D838@hg.openjdk.java.net> Changeset: b010683123b3 Author: ohair Date: 2008-08-14 13:33 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/b010683123b3 6674227: Missing LICENSE file during build Summary: Just a JPRT usage issue. The top level files (like LICENSE) are needed to create the jdk image (j2sdk-image directory). Reviewed-by: tbell ! make/jprt.properties Changeset: ac68bf5140b2 Author: ohair Date: 2008-08-14 20:59 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/ac68bf5140b2 Merge - make/java/nio/spp.sh - src/windows/classes/sun/java2d/d3d/D3DBackBufferSurfaceData.java - src/windows/classes/sun/java2d/windows/DDBlitLoops.java - src/windows/classes/sun/java2d/windows/DDRenderer.java - src/windows/classes/sun/java2d/windows/DDScaleLoops.java - src/windows/classes/sun/java2d/windows/Win32OffScreenSurfaceData.java - src/windows/classes/sun/java2d/windows/Win32SurfaceData.java - src/windows/classes/sun/java2d/windows/Win32SurfaceDataProxy.java - src/windows/classes/sun/java2d/windows/WinBackBuffer.java - src/windows/classes/sun/java2d/windows/WinBackBufferSurfaceData.java - src/windows/classes/sun/java2d/windows/WinVolatileSurfaceManager.java - src/windows/native/sun/java2d/d3d/D3DRuntimeTest.cpp - src/windows/native/sun/java2d/d3d/D3DRuntimeTest.h - src/windows/native/sun/java2d/d3d/D3DTestRaster.h - src/windows/native/sun/java2d/d3d/D3DTextRenderer_md.cpp - src/windows/native/sun/java2d/d3d/D3DUtils.cpp - src/windows/native/sun/java2d/d3d/D3DUtils.h - src/windows/native/sun/java2d/windows/DDBlitLoops.cpp - src/windows/native/sun/java2d/windows/DDRenderer.cpp - src/windows/native/sun/java2d/windows/RegistryKey.cpp - src/windows/native/sun/java2d/windows/RegistryKey.h - src/windows/native/sun/java2d/windows/Win32OffScreenSurfaceData.cpp - src/windows/native/sun/java2d/windows/Win32SurfaceData.cpp - src/windows/native/sun/java2d/windows/Win32SurfaceData.h - src/windows/native/sun/java2d/windows/WinBackBufferSurfaceData.cpp - src/windows/native/sun/java2d/windows/ddrawObject.cpp - src/windows/native/sun/java2d/windows/ddrawObject.h - src/windows/native/sun/java2d/windows/ddrawUtils.cpp - src/windows/native/sun/java2d/windows/ddrawUtils.h - src/windows/native/sun/java2d/windows/dxCapabilities.cpp - src/windows/native/sun/java2d/windows/dxCapabilities.h - src/windows/native/sun/java2d/windows/dxInit.cpp - src/windows/native/sun/java2d/windows/dxInit.h Changeset: db4bd081eff2 Author: ksrini Date: 2008-08-19 07:50 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/db4bd081eff2 6614210: JPRT Windows 32bit msival2 build failure when building 'install' workspace Summary: suppresses wscript's modal dialog on error and no msi validation for jprt. Reviewed-by: ohair, jmelvin ! make/common/shared/Defs-windows.gmk Changeset: 434055a0716e Author: xdono Date: 2008-08-21 09:55 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/434055a0716e Merge Changeset: 9f53e194687c Author: tbell Date: 2008-08-25 23:33 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/9f53e194687c Merge Changeset: c5f211538cad Author: tbell Date: 2008-08-25 23:37 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/c5f211538cad Merge - src/share/javavm/include/opcodes.h - src/share/javavm/include/opcodes.length - src/share/javavm/include/opcodes.list - src/share/javavm/include/opcodes.weight - src/share/javavm/include/opcodes.wide - src/share/javavm/include/sys_api.h - src/share/javavm/include/typedefs.h - src/solaris/javavm/include/typedefs_md.h - src/windows/javavm/include/typedefs_md.h Changeset: bf580c41f68f Author: xdono Date: 2008-08-28 11:05 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/bf580c41f68f Added tag jdk7-b34 for changeset 434055a0716e ! .hgtags Changeset: cf4894b78ceb Author: tbell Date: 2008-08-29 12:40 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/cf4894b78ceb Merge Changeset: ad45ffa62646 Author: tbell Date: 2008-08-31 11:59 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/ad45ffa62646 Merge Changeset: 71a5f3f55b9c Author: tbell Date: 2008-09-04 14:55 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/71a5f3f55b9c Merge - src/share/classes/com/sun/jmx/interceptor/MBeanServerSupport.java - src/share/classes/java/nio/channels/package.html - src/share/classes/sun/nio/ch/OptionAdaptor.java - src/share/classes/sun/nio/ch/SocketOpts.java - src/share/classes/sun/nio/ch/SocketOptsImpl.java - src/share/classes/sun/nio/ch/exceptions Changeset: 59aa6b578cf0 Author: bristor Date: 2008-09-08 13:44 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/59aa6b578cf0 6661861: Decrease memory use of Inflaters by ZipFile Summary: Fix allows release of native resources earlier than without fix Reviewed-by: alanb ! src/share/classes/java/util/zip/Inflater.java ! src/share/classes/java/util/zip/ZipFile.java Changeset: 334efd173b8f Author: bristor Date: 2008-09-08 14:11 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/334efd173b8f 6356642: extcheck.exe -verbose throws ArrayIndexOutOfBoundsException exception Summary: Fix causes printing of user-level error messages instead of throwing exceptions Reviewed-by: sherman ! src/share/classes/com/sun/tools/extcheck/ExtCheck.java ! src/share/classes/com/sun/tools/extcheck/Main.java + test/com/sun/tools/extcheck/TestExtcheckArgs.java + test/com/sun/tools/extcheck/TestExtcheckArgs.sh Changeset: 094873a59791 Author: sjiang Date: 2008-09-09 14:17 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/094873a59791 6736611: [Evt Srv] EventSubscriber.unsubscribe removes other listeners Reviewed-by: emcmanus ! src/share/classes/javax/management/event/EventSubscriber.java + test/javax/management/eventService/SubUnsubTest.java Changeset: 1643868af837 Author: emcmanus Date: 2008-09-09 14:57 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/1643868af837 6746196: Some JMX classes do not compile with Eclipse compiler Reviewed-by: dfuchs Contributed-by: roman.kennke at aicas.com ! src/share/classes/com/sun/jmx/mbeanserver/DefaultMXBeanMappingFactory.java ! src/share/classes/com/sun/jmx/mbeanserver/MBeanIntrospector.java Changeset: 5778303e2e14 Author: dfuchs Date: 2008-09-09 17:01 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/5778303e2e14 6745832: jmx namespaces: Some refactoring/commenting would improve code readability. Reviewed-by: emcmanus ! src/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java ! src/share/classes/com/sun/jmx/interceptor/DispatchInterceptor.java ! src/share/classes/com/sun/jmx/interceptor/DomainDispatchInterceptor.java ! src/share/classes/com/sun/jmx/interceptor/NamespaceDispatchInterceptor.java ! src/share/classes/com/sun/jmx/mbeanserver/Util.java ! src/share/classes/com/sun/jmx/namespace/DomainInterceptor.java ! src/share/classes/com/sun/jmx/namespace/HandlerInterceptor.java ! src/share/classes/com/sun/jmx/namespace/JMXNamespaceUtils.java ! src/share/classes/com/sun/jmx/namespace/NamespaceInterceptor.java ! src/share/classes/com/sun/jmx/namespace/RoutingConnectionProxy.java ! src/share/classes/com/sun/jmx/namespace/RoutingMBeanServerConnection.java ! src/share/classes/com/sun/jmx/namespace/RoutingProxy.java ! src/share/classes/com/sun/jmx/namespace/RoutingServerProxy.java ! src/share/classes/javax/management/namespace/JMXDomain.java ! src/share/classes/javax/management/namespace/JMXNamespace.java ! src/share/classes/javax/management/namespace/JMXNamespaces.java ! src/share/classes/javax/management/namespace/JMXRemoteNamespace.java ! src/share/classes/javax/management/namespace/MBeanServerConnectionWrapper.java ! test/javax/management/namespace/Wombat.java Changeset: 84417fdd8358 Author: martin Date: 2008-09-09 15:20 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/84417fdd8358 6728229: (str) StringBuilder.append(CharSequence) does not throw IndexOutOfBoundsException Summary: Major spec rework Reviewed-by: alanb ! src/share/classes/java/lang/AbstractStringBuilder.java ! src/share/classes/java/lang/StringBuffer.java ! src/share/classes/java/lang/StringBuilder.java Changeset: 12f5110538d3 Author: martin Date: 2008-09-09 15:20 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/12f5110538d3 6733145: (bf) CharBuffer.subSequence can be updated to take advantage of covariant returns Summary: Change return type to CharBuffer Reviewed-by: alanb ! src/share/classes/java/nio/ByteBufferAs-X-Buffer.java ! src/share/classes/java/nio/Direct-X-Buffer.java ! src/share/classes/java/nio/Heap-X-Buffer.java ! src/share/classes/java/nio/StringCharBuffer.java ! src/share/classes/java/nio/X-Buffer.java Changeset: f56b905df082 Author: alanb Date: 2008-09-10 11:20 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/f56b905df082 Merge ! .hgtags Changeset: 57c1ac738a3a Author: alanb Date: 2008-09-10 12:07 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/57c1ac738a3a Fixed intermittent crash on Windows when closing AsynchronousSocketChannel at just around the time that read or write operation is initiated. Fixed memory leak on Windows when AsynchronousSocketChannel#write invoked with non-direct buffers. Thanks to Alex and Yevgeny Libman for the echo test. ! src/share/classes/sun/nio/ch/ThreadPool.java ! src/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java Changeset: 378d08568c71 Author: alanb Date: 2008-09-10 16:49 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/378d08568c71 Part 2 of temporary file support ! src/share/classes/java/io/File.java ! src/share/classes/java/nio/channels/AsynchronousFileChannel.java ! src/share/classes/java/nio/channels/FileChannel.java ! src/share/classes/java/nio/file/FileRef.java ! src/share/classes/java/nio/file/Path.java ! src/share/classes/java/nio/file/StandardOpenOption.java + test/java/nio/file/Path/TemporaryFiles.java + test/java/nio/file/Path/temporary_files.sh Changeset: 92b63eca7d13 Author: alanb Date: 2008-09-10 17:46 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/92b63eca7d13 FileVisitor#preVisitDirectory inconsistent with postVisitDirectory Misc. clarification/re-wording in java.nio.file package ! src/share/classes/java/nio/file/DirectoryStreamFilters.java ! src/share/classes/java/nio/file/FileTreeWalker.java ! src/share/classes/java/nio/file/FileVisitor.java ! src/share/classes/java/nio/file/Files.java ! src/share/classes/java/nio/file/Path.java ! src/share/classes/java/nio/file/Paths.java ! src/share/classes/java/nio/file/SecureDirectoryStream.java ! src/share/classes/java/nio/file/SimpleFileVisitor.java ! src/share/sample/nio/file/Chmod.java ! src/share/sample/nio/file/Copy.java ! src/share/sample/nio/file/WatchDir.java ! test/demo/nio/ZipFileSystem/Sanity.java ! test/java/nio/file/Files/PrintFileTree.java ! test/java/nio/file/Files/SkipSiblings.java ! test/java/nio/file/Files/TerminateWalk.java ! test/java/nio/file/TestUtil.java Changeset: 2b44dd8ed72d Author: emcmanus Date: 2008-09-10 13:36 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/2b44dd8ed72d 6734813: Provide a way to construct an ObjectName without checked exceptions 6746649: ObjectName constructors and methods declare unchecked exceptions in throws clauses Reviewed-by: dfuchs ! src/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java ! src/share/classes/com/sun/jmx/mbeanserver/Repository.java ! src/share/classes/com/sun/jmx/mbeanserver/Util.java ! src/share/classes/com/sun/jmx/namespace/DomainInterceptor.java ! src/share/classes/java/lang/management/PlatformComponent.java ! src/share/classes/java/util/logging/Logging.java ! src/share/classes/javax/management/MBeanServerDelegate.java ! src/share/classes/javax/management/ObjectName.java ! src/share/classes/javax/management/QueryNotificationFilter.java ! src/share/classes/javax/management/event/EventClientDelegateMBean.java ! src/share/classes/javax/management/namespace/MBeanServerSupport.java ! src/share/classes/sun/management/Util.java + test/javax/management/ObjectName/ValueOfTest.java Changeset: b35ccd203a7e Author: emcmanus Date: 2008-09-10 14:56 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/b35ccd203a7e 6746759: Fix for 6734813 introduced build break Reviewed-by: dfuchs ! src/share/classes/sun/management/ClassLoadingImpl.java ! src/share/classes/sun/management/CompilationImpl.java ! src/share/classes/sun/management/HotSpotDiagnostic.java ! src/share/classes/sun/management/HotspotInternal.java ! src/share/classes/sun/management/ManagementFactoryHelper.java ! src/share/classes/sun/management/MemoryImpl.java ! src/share/classes/sun/management/OperatingSystemImpl.java ! src/share/classes/sun/management/RuntimeImpl.java ! src/share/classes/sun/management/ThreadImpl.java Changeset: 3e7b9a0f3a6f Author: dfuchs Date: 2008-09-10 16:27 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/3e7b9a0f3a6f 6746754: jmx namespace: test for leading separator missing 6669137: RFE: InstanceNotFoundException should have a constructor that takes an ObjectName 6746796: jmx namespaces: Several tests are missing an @bug or @run keyword Summary: Note on 6669137: first implementation of 6669137 was actually pushed with 5072476 - here we only have a small update and a test case. Also re-fixes 6737133: Compilation failure of test/javax/management/eventService/LeaseManagerDeadlockTest.java which had failed. Reviewed-by: emcmanus, yjoan ! src/share/classes/com/sun/jmx/namespace/RoutingProxy.java ! src/share/classes/javax/management/InstanceNotFoundException.java + test/javax/management/MBeanServer/InstanceNotFoundExceptionTest.java ! test/javax/management/MBeanServerFactory/NamedMBeanServerTest.java ! test/javax/management/eventService/LeaseManagerDeadlockTest.java ! test/javax/management/namespace/DomainCreationTest.java ! test/javax/management/namespace/EventWithNamespaceControlTest.java ! test/javax/management/namespace/EventWithNamespaceTest.java ! test/javax/management/namespace/ExportNamespaceTest.java ! test/javax/management/namespace/JMXDomainTest.java ! test/javax/management/namespace/JMXNamespaceSecurityTest.java ! test/javax/management/namespace/JMXNamespaceTest.java ! test/javax/management/namespace/JMXNamespaceViewTest.java ! test/javax/management/namespace/JMXNamespacesTest.java ! test/javax/management/namespace/JMXRemoteNamespaceTest.java ! test/javax/management/namespace/LazyDomainTest.java + test/javax/management/namespace/LeadingSeparatorsTest.java ! test/javax/management/namespace/NamespaceCreationTest.java ! test/javax/management/namespace/NamespaceNotificationsTest.java ! test/javax/management/namespace/NullObjectNameTest.java ! test/javax/management/namespace/QueryNamesTest.java ! test/javax/management/namespace/RemoveNotificationListenerTest.java ! test/javax/management/namespace/RoutingServerProxyTest.java ! test/javax/management/namespace/SerialParamProcessorTest.java ! test/javax/management/namespace/SourceNamespaceTest.java ! test/javax/management/namespace/VirtualMBeanNotifTest.java ! test/javax/management/namespace/VirtualMBeanTest.java ! test/javax/management/namespace/VirtualNamespaceQueryTest.java ! test/javax/management/namespace/VirtualPropsTest.java Changeset: a056809a06aa Author: alanb Date: 2008-09-10 21:08 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/a056809a06aa Merge From alan.bateman at sun.com Wed Sep 10 13:28:22 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Wed, 10 Sep 2008 20:28:22 +0000 Subject: hg: nio/nio/langtools: 6 new changesets Message-ID: <20080910202832.86F66D83F@hg.openjdk.java.net> Changeset: 8889fb6c5af0 Author: xdono Date: 2008-08-28 11:05 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/8889fb6c5af0 Added tag jdk7-b34 for changeset 4026dece07e8 ! .hgtags Changeset: 81f66dd906eb Author: tbell Date: 2008-08-29 12:42 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/81f66dd906eb Merge Changeset: 7b59e34898ff Author: tbell Date: 2008-08-31 12:00 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/7b59e34898ff Merge Changeset: 5a9b808557b6 Author: tbell Date: 2008-09-04 14:56 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/5a9b808557b6 Merge Changeset: 91eea580fbe9 Author: jjg Date: 2008-09-09 10:28 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/91eea580fbe9 6557752: Original type of an AST should be made available even if it is replaced with an ErrorType Reviewed-by: mcimadamore ! src/share/classes/com/sun/source/util/Trees.java ! src/share/classes/com/sun/tools/javac/api/JavacTrees.java ! src/share/classes/com/sun/tools/javac/code/Symbol.java ! src/share/classes/com/sun/tools/javac/code/Symtab.java ! src/share/classes/com/sun/tools/javac/code/Type.java ! src/share/classes/com/sun/tools/javac/code/Types.java ! src/share/classes/com/sun/tools/javac/comp/Attr.java ! src/share/classes/com/sun/tools/javac/comp/Check.java ! src/share/classes/com/sun/tools/javac/comp/Enter.java ! src/share/classes/com/sun/tools/javac/comp/Infer.java ! src/share/classes/com/sun/tools/javac/comp/Resolve.java ! src/share/classes/javax/lang/model/type/ErrorType.java + test/tools/javac/api/6557752/T6557752.java Changeset: a92b756a888f Author: jjg Date: 2008-09-09 10:40 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/a92b756a888f 6724118: change JavaCompiler to not use Scanner directly 6736119: refactor Parser and Parser.Factory Reviewed-by: mcimadamore ! src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java ! src/share/classes/com/sun/tools/javac/main/JavaCompiler.java ! src/share/classes/com/sun/tools/javac/parser/EndPosParser.java + src/share/classes/com/sun/tools/javac/parser/JavacParser.java ! src/share/classes/com/sun/tools/javac/parser/Parser.java + src/share/classes/com/sun/tools/javac/parser/ParserFactory.java ! test/tools/javac/6304921/TestLog.java From alan.bateman at sun.com Tue Sep 16 14:33:25 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 16 Sep 2008 21:33:25 +0000 Subject: hg: nio/nio: 2 new changesets Message-ID: <20080916213326.2B2A6DD54@hg.openjdk.java.net> Changeset: 4d52a6465eb0 Author: xdono Date: 2008-09-11 11:25 -0700 URL: http://hg.openjdk.java.net/nio/nio/rev/4d52a6465eb0 Added tag jdk7-b35 for changeset 143c1abedb7d ! .hgtags Changeset: f920f23af0d0 Author: tbell Date: 2008-09-12 14:30 -0700 URL: http://hg.openjdk.java.net/nio/nio/rev/f920f23af0d0 Merge From alan.bateman at sun.com Tue Sep 16 14:34:02 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 16 Sep 2008 21:34:02 +0000 Subject: hg: nio/nio/corba: Added tag jdk7-b35 for changeset 3867c4d14a5b Message-ID: <20080916213404.7F462DD5E@hg.openjdk.java.net> Changeset: 545dffad4849 Author: xdono Date: 2008-09-11 11:25 -0700 URL: http://hg.openjdk.java.net/nio/nio/corba/rev/545dffad4849 Added tag jdk7-b35 for changeset 3867c4d14a5b ! .hgtags From alan.bateman at sun.com Tue Sep 16 14:35:16 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 16 Sep 2008 21:35:16 +0000 Subject: hg: nio/nio/hotspot: 25 new changesets Message-ID: <20080916213605.C2307DD6C@hg.openjdk.java.net> Changeset: c3e045194476 Author: kvn Date: 2008-08-01 10:06 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/c3e045194476 6731641: assert(m->adr_type() == mach->adr_type(),"matcher should not change adr type") Summary: fixed few addP node type and narrow oop type problems. Reviewed-by: rasbold, never ! src/share/vm/adlc/output_h.cpp ! src/share/vm/opto/addnode.cpp ! src/share/vm/opto/callGenerator.cpp ! src/share/vm/opto/compile.cpp ! src/share/vm/opto/escape.cpp ! src/share/vm/opto/escape.hpp ! src/share/vm/opto/loopnode.cpp ! src/share/vm/opto/loopopts.cpp ! src/share/vm/opto/memnode.cpp ! src/share/vm/opto/subnode.cpp ! src/share/vm/opto/type.cpp Changeset: 616a07a75c3c Author: rasbold Date: 2008-08-14 10:15 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/616a07a75c3c 6732154: REG: Printing an Image using image/gif doc flavor crashes the VM, Solsparc Summary: delay transform call until uses of t2 are constructed Reviewed-by: never ! src/share/vm/opto/divnode.cpp Changeset: ea18057223c4 Author: never Date: 2008-08-18 23:17 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/ea18057223c4 6732194: Data corruption dependent on -server/-client/-Xbatch Summary: rematerializing nodes results in incorrect inputs Reviewed-by: rasbold ! src/share/vm/opto/chaitin.cpp ! src/share/vm/opto/chaitin.hpp ! src/share/vm/opto/coalesce.cpp ! src/share/vm/opto/ifg.cpp ! src/share/vm/opto/reg_split.cpp Changeset: ce93a51457ae Author: rasbold Date: 2008-08-19 07:25 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/ce93a51457ae 6730716: nulls from two unrelated classes compare not equal Summary: check for not-nullness after proving that types are unrelated Reviewed-by: kvn, never ! src/share/vm/opto/subnode.cpp Changeset: f8068895c22d Author: rasbold Date: 2008-08-21 05:49 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/f8068895c22d Merge Changeset: 1e5d20c34408 Author: tonyp Date: 2008-08-19 17:55 -0400 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/1e5d20c34408 6736341: PermGen size is insufficient for jconsole Summary: Removing two buggy methods that should not be used, but ended up being used due to a re-organization in the class hierarchy. Reviewed-by: jmasa, ysr, kamg, coleenp ! src/share/vm/memory/compactingPermGenGen.cpp ! src/share/vm/memory/compactingPermGenGen.hpp Changeset: 331eaa715e58 Author: ysr Date: 2008-08-20 11:23 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/331eaa715e58 Merge Changeset: bfcb639d5bca Author: ysr Date: 2008-08-20 15:41 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/bfcb639d5bca 6739357: CMS: Switch off CMSPrecleanRefLists1 until 6722113 can be fixed Summary: Temporarily switch off the precleaning of Reference lists completely until related issues are fixed in 6722113. Reviewed-by: jmasa, poonam, tonyp ! src/share/vm/runtime/globals.hpp Changeset: 387a62b4be60 Author: jmasa Date: 2008-08-20 23:05 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/387a62b4be60 6728478: Assertion at parallel promotion from young to old generation Summary: The fix avoids a call to address_for_index() in this particular situation where it is not known if the passed index is in bounds. Reviewed-by: tonyp ! src/share/vm/gc_implementation/parNew/parGCAllocBuffer.cpp ! src/share/vm/memory/blockOffsetTable.hpp Changeset: 58eb97387b90 Author: ysr Date: 2008-08-25 12:16 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/58eb97387b90 Merge Changeset: fa4d1d240383 Author: never Date: 2008-08-26 15:49 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/fa4d1d240383 6741642: bad enum definition in ciTypeFlow.hpp Reviewed-by: rasbold, martin Contributed-by: doko at ubuntu.com ! src/share/vm/ci/ciTypeFlow.hpp Changeset: dc7f315e41f7 Author: never Date: 2008-08-27 00:21 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories 6459804: Want client (c1) compiler for x86_64 (amd64) for faster start-up Reviewed-by: kvn + make/solaris/makefiles/reorder_COMPILER1_amd64 ! make/solaris/makefiles/reorder_COMPILER1_i486 ! src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp ! src/cpu/sparc/vm/relocInfo_sparc.cpp ! src/cpu/sparc/vm/sharedRuntime_sparc.cpp + src/cpu/x86/vm/assembler_x86.cpp + src/cpu/x86/vm/assembler_x86.hpp + src/cpu/x86/vm/assembler_x86.inline.hpp - src/cpu/x86/vm/assembler_x86_32.cpp - src/cpu/x86/vm/assembler_x86_32.hpp - src/cpu/x86/vm/assembler_x86_32.inline.hpp - src/cpu/x86/vm/assembler_x86_64.cpp - src/cpu/x86/vm/assembler_x86_64.hpp - src/cpu/x86/vm/assembler_x86_64.inline.hpp ! src/cpu/x86/vm/c1_CodeStubs_x86.cpp ! src/cpu/x86/vm/c1_Defs_x86.hpp ! src/cpu/x86/vm/c1_FrameMap_x86.cpp ! src/cpu/x86/vm/c1_FrameMap_x86.hpp ! src/cpu/x86/vm/c1_LIRAssembler_x86.cpp ! src/cpu/x86/vm/c1_LIRAssembler_x86.hpp ! src/cpu/x86/vm/c1_LIRGenerator_x86.cpp ! src/cpu/x86/vm/c1_LinearScan_x86.hpp ! src/cpu/x86/vm/c1_MacroAssembler_x86.cpp ! src/cpu/x86/vm/c1_MacroAssembler_x86.hpp ! src/cpu/x86/vm/c1_Runtime1_x86.cpp ! src/cpu/x86/vm/cppInterpreter_x86.cpp ! src/cpu/x86/vm/dump_x86_32.cpp ! src/cpu/x86/vm/dump_x86_64.cpp ! src/cpu/x86/vm/frame_x86.cpp ! src/cpu/x86/vm/frame_x86.inline.hpp ! src/cpu/x86/vm/icache_x86.cpp ! src/cpu/x86/vm/interp_masm_x86_32.cpp ! src/cpu/x86/vm/interp_masm_x86_32.hpp ! src/cpu/x86/vm/interp_masm_x86_64.cpp ! src/cpu/x86/vm/interp_masm_x86_64.hpp ! src/cpu/x86/vm/interpreterRT_x86_32.cpp ! src/cpu/x86/vm/interpreterRT_x86_64.cpp ! src/cpu/x86/vm/interpreter_x86_32.cpp ! src/cpu/x86/vm/interpreter_x86_64.cpp ! src/cpu/x86/vm/jniFastGetField_x86_32.cpp ! src/cpu/x86/vm/jniFastGetField_x86_64.cpp ! src/cpu/x86/vm/nativeInst_x86.cpp ! src/cpu/x86/vm/nativeInst_x86.hpp ! src/cpu/x86/vm/relocInfo_x86.cpp ! src/cpu/x86/vm/runtime_x86_32.cpp ! src/cpu/x86/vm/sharedRuntime_x86_32.cpp ! src/cpu/x86/vm/sharedRuntime_x86_64.cpp ! src/cpu/x86/vm/stubGenerator_x86_32.cpp ! src/cpu/x86/vm/stubGenerator_x86_64.cpp ! src/cpu/x86/vm/stubRoutines_x86_32.cpp ! src/cpu/x86/vm/stubRoutines_x86_32.hpp ! src/cpu/x86/vm/stubRoutines_x86_64.cpp ! src/cpu/x86/vm/stubRoutines_x86_64.hpp ! src/cpu/x86/vm/templateInterpreter_x86_32.cpp ! src/cpu/x86/vm/templateInterpreter_x86_64.cpp ! src/cpu/x86/vm/templateTable_x86_32.cpp ! src/cpu/x86/vm/templateTable_x86_32.hpp ! src/cpu/x86/vm/templateTable_x86_64.cpp ! src/cpu/x86/vm/vm_version_x86_32.cpp ! src/cpu/x86/vm/vm_version_x86_64.cpp ! src/cpu/x86/vm/vtableStubs_x86_32.cpp ! src/cpu/x86/vm/vtableStubs_x86_64.cpp ! src/cpu/x86/vm/x86_32.ad ! src/cpu/x86/vm/x86_64.ad + src/os_cpu/linux_x86/vm/assembler_linux_x86.cpp - src/os_cpu/linux_x86/vm/assembler_linux_x86_32.cpp - src/os_cpu/linux_x86/vm/assembler_linux_x86_64.cpp + src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp - src/os_cpu/solaris_x86/vm/assembler_solaris_x86_32.cpp - src/os_cpu/solaris_x86/vm/assembler_solaris_x86_64.cpp ! src/os_cpu/solaris_x86/vm/solaris_x86_32.ad + src/os_cpu/windows_x86/vm/assembler_windows_x86.cpp - src/os_cpu/windows_x86/vm/assembler_windows_x86_32.cpp - src/os_cpu/windows_x86/vm/assembler_windows_x86_64.cpp ! src/os_cpu/windows_x86/vm/os_windows_x86.cpp ! src/share/vm/c1/c1_FrameMap.cpp ! src/share/vm/c1/c1_LIR.cpp ! src/share/vm/c1/c1_LIR.hpp ! src/share/vm/c1/c1_LIRAssembler.cpp ! src/share/vm/c1/c1_LIRAssembler.hpp ! src/share/vm/c1/c1_LIRGenerator.cpp ! src/share/vm/c1/c1_LinearScan.cpp ! src/share/vm/c1/c1_LinearScan.hpp ! src/share/vm/c1/c1_Runtime1.cpp ! src/share/vm/code/relocInfo.hpp ! src/share/vm/includeDB_compiler1 ! src/share/vm/includeDB_compiler2 ! src/share/vm/includeDB_core ! src/share/vm/includeDB_features ! src/share/vm/runtime/vmStructs.cpp ! src/share/vm/utilities/macros.hpp Changeset: ab075d07f1ba Author: kvn Date: 2008-08-27 09:15 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/ab075d07f1ba 6736417: Fastdebug C2 crashes in StoreBNode::Ideal Summary: The result of step_through_mergemem() and remove_dead_region() is not checked in some cases. Reviewed-by: never ! src/share/vm/opto/callnode.cpp ! src/share/vm/opto/connode.cpp ! src/share/vm/opto/divnode.cpp ! src/share/vm/opto/memnode.cpp ! src/share/vm/opto/node.cpp ! src/share/vm/opto/phaseX.cpp Changeset: af945ba2e739 Author: kvn Date: 2008-08-27 14:47 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/af945ba2e739 6741738: TypePtr::add_offset() set incorrect offset when the add overflows Summary: Set offset to OffsetBot when the add overflows in TypePtr::add_offset() Reviewed-by: jrose, never ! src/share/vm/opto/addnode.cpp ! src/share/vm/opto/escape.cpp ! src/share/vm/opto/macro.cpp ! src/share/vm/opto/type.cpp ! src/share/vm/opto/type.hpp + test/compiler/6741738/Tester.java Changeset: 892493c3d862 Author: kvn Date: 2008-08-27 16:33 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/892493c3d862 6732732: CTW with EA: assert(n != 0L,"Bad immediate dominator info.") Summary: Missing edge to a call's return value in EA Connection Graph. Reviewed-by: never ! src/share/vm/opto/escape.cpp Changeset: 756b58154237 Author: rasbold Date: 2008-08-28 10:22 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/756b58154237 6611837: block frequency is zero Summary: insert_goto_at should set frequency for newly created blocks Reviewed-by: never ! src/share/vm/opto/block.cpp ! src/share/vm/opto/gcm.cpp Changeset: eaf496ad4a14 Author: never Date: 2008-08-28 23:03 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/eaf496ad4a14 6732698: crash with dead code from compressed oops in gcm Reviewed-by: rasbold ! src/share/vm/opto/matcher.cpp Changeset: cf6f0e32e518 Author: rasbold Date: 2008-09-02 06:55 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/cf6f0e32e518 Merge - src/cpu/x86/vm/assembler_x86_32.cpp - src/cpu/x86/vm/assembler_x86_32.hpp - src/cpu/x86/vm/assembler_x86_32.inline.hpp - src/cpu/x86/vm/assembler_x86_64.cpp - src/cpu/x86/vm/assembler_x86_64.hpp - src/cpu/x86/vm/assembler_x86_64.inline.hpp - src/os_cpu/linux_x86/vm/assembler_linux_x86_32.cpp - src/os_cpu/linux_x86/vm/assembler_linux_x86_64.cpp - src/os_cpu/solaris_x86/vm/assembler_solaris_x86_32.cpp - src/os_cpu/solaris_x86/vm/assembler_solaris_x86_64.cpp - src/os_cpu/windows_x86/vm/assembler_windows_x86_32.cpp - src/os_cpu/windows_x86/vm/assembler_windows_x86_64.cpp Changeset: 25c3145237c6 Author: poonam Date: 2008-08-27 22:45 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/25c3145237c6 6731958: Include all the SA classes into sa-jdi.jar Summary: sa-jdi.jar bundled with JDK should include all the SA classes. Reviewed-by: swamyv ! agent/make/build-pkglist ! make/linux/makefiles/sa.make ! make/sa.files ! make/solaris/makefiles/sa.make ! make/windows/makefiles/sa.make Changeset: 9223f5bb0bf7 Author: poonam Date: 2008-08-28 18:17 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/9223f5bb0bf7 Merge Changeset: a10808f5a4b5 Author: dcubed Date: 2008-09-02 08:30 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/a10808f5a4b5 Merge Changeset: 3a26e9e4be71 Author: never Date: 2008-09-03 14:57 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/3a26e9e4be71 6744422: incorrect handling of -1 in set_jump_destination Reviewed-by: rasbold ! src/cpu/x86/vm/nativeInst_x86.hpp Changeset: 5c7c20a84e41 Author: trims Date: 2008-09-04 18:40 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/5c7c20a84e41 6745064: Update Hotspot build number for HS14 Summary: Bump build number for hs14-b04 Reviewed-by: jcoomes ! make/hotspot_version Changeset: 5fa96a5a7e76 Author: trims Date: 2008-09-04 18:40 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/5fa96a5a7e76 Merge - src/cpu/x86/vm/assembler_x86_32.cpp - src/cpu/x86/vm/assembler_x86_32.hpp - src/cpu/x86/vm/assembler_x86_32.inline.hpp - src/cpu/x86/vm/assembler_x86_64.cpp - src/cpu/x86/vm/assembler_x86_64.hpp - src/cpu/x86/vm/assembler_x86_64.inline.hpp - src/os_cpu/linux_x86/vm/assembler_linux_x86_32.cpp - src/os_cpu/linux_x86/vm/assembler_linux_x86_64.cpp - src/os_cpu/solaris_x86/vm/assembler_solaris_x86_32.cpp - src/os_cpu/solaris_x86/vm/assembler_solaris_x86_64.cpp - src/os_cpu/windows_x86/vm/assembler_windows_x86_32.cpp - src/os_cpu/windows_x86/vm/assembler_windows_x86_64.cpp Changeset: 51798f0e554f Author: xdono Date: 2008-09-11 11:25 -0700 URL: http://hg.openjdk.java.net/nio/nio/hotspot/rev/51798f0e554f Added tag jdk7-b35 for changeset 5fa96a5a7e76 ! .hgtags From alan.bateman at sun.com Tue Sep 16 14:38:17 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 16 Sep 2008 21:38:17 +0000 Subject: hg: nio/nio/jaxp: Added tag jdk7-b35 for changeset eac46d1eb7f0 Message-ID: <20080916213820.1DAEEDD72@hg.openjdk.java.net> Changeset: c84ca638db42 Author: xdono Date: 2008-09-11 11:25 -0700 URL: http://hg.openjdk.java.net/nio/nio/jaxp/rev/c84ca638db42 Added tag jdk7-b35 for changeset eac46d1eb7f0 ! .hgtags From alan.bateman at sun.com Tue Sep 16 14:38:51 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 16 Sep 2008 21:38:51 +0000 Subject: hg: nio/nio/jaxws: Added tag jdk7-b35 for changeset b0f01c2508b6 Message-ID: <20080916213853.EDFE5DD7B@hg.openjdk.java.net> Changeset: f60187f44a0d Author: xdono Date: 2008-09-11 11:25 -0700 URL: http://hg.openjdk.java.net/nio/nio/jaxws/rev/f60187f44a0d Added tag jdk7-b35 for changeset b0f01c2508b6 ! .hgtags From alan.bateman at sun.com Tue Sep 16 14:39:36 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 16 Sep 2008 21:39:36 +0000 Subject: hg: nio/nio/jdk: 10 new changesets Message-ID: <20080916214151.344E6DD8E@hg.openjdk.java.net> Changeset: bee470ba5b24 Author: bristor Date: 2008-09-11 14:58 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/bee470ba5b24 6440786: Cannot create a ZIP file containing zero entries Summary: Allow reading and writing of ZIP files with zero entries. Reviewed-by: alanb ! src/share/classes/java/util/zip/ZipOutputStream.java ! src/share/native/java/util/zip/zip_util.c + test/java/util/zip/TestEmptyZip.java Changeset: ebc38225b4a9 Author: emcmanus Date: 2008-09-12 15:17 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/ebc38225b4a9 6747411: EventClient causes thread leaks Summary: Reworked thread management in EventClient and related classes. Reviewed-by: sjiang, dfuchs ! src/share/classes/com/sun/jmx/event/LeaseManager.java ! src/share/classes/com/sun/jmx/event/RepeatedSingletonJob.java ! src/share/classes/com/sun/jmx/remote/internal/ClientCommunicatorAdmin.java ! src/share/classes/javax/management/event/EventClient.java ! src/share/classes/javax/management/event/FetchingEventRelay.java ! src/share/classes/javax/management/event/RMIPushEventForwarder.java ! src/share/classes/javax/management/remote/rmi/RMIConnector.java + test/javax/management/eventService/EventClientThreadTest.java ! test/javax/management/eventService/SharingThreadTest.java Changeset: 6a49dd6635ba Author: dfuchs Date: 2008-09-12 17:58 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/6a49dd6635ba 6747899: jmx namespaces: hooks for permission checks should be defined in HandlerInterceptor Reviewed-by: emcmanus ! src/share/classes/com/sun/jmx/namespace/HandlerInterceptor.java ! src/share/classes/com/sun/jmx/namespace/RoutingMBeanServerConnection.java Changeset: 09a7e38337e9 Author: dfuchs Date: 2008-09-12 19:06 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/09a7e38337e9 6747983: jmx namespace: unspecified self-link detection logic Reviewed-by: emcmanus ! src/share/classes/com/sun/jmx/namespace/NamespaceInterceptor.java ! src/share/classes/javax/management/namespace/JMXRemoteNamespace.java ! test/javax/management/namespace/JMXNamespaceTest.java Changeset: 0040c30cc7a8 Author: alanb Date: 2008-09-15 15:04 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/0040c30cc7a8 Merge Changeset: 1f02742842ba Author: alanb Date: 2008-09-16 19:40 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/1f02742842ba Ensure that completion handler is invoked by thread with the expected identity Initial clean-up of FileChannel/AsynchronousFileChannel ! make/java/nio/Exportedfiles.gmk ! make/java/nio/FILES_c.gmk ! make/java/nio/FILES_java.gmk ! make/java/nio/Makefile ! make/java/nio/mapfile-linux ! make/java/nio/mapfile-solaris ! src/share/classes/java/nio/channels/AsynchronousChannelGroup.java ! src/share/classes/java/nio/channels/AsynchronousServerSocketChannel.java + src/share/classes/java/nio/channels/ShutdownChannelGroupException.java ! src/share/classes/java/nio/channels/exceptions ! src/share/classes/java/nio/channels/spi/AbstractInterruptibleChannel.java - src/share/classes/sun/misc/JavaNioChannelsSpiAccess.java ! src/share/classes/sun/misc/SharedSecrets.java ! src/share/classes/sun/nio/ch/AsynchronousChannelGroupImpl.java ! src/share/classes/sun/nio/ch/AsynchronousFileChannelImpl.java ! src/share/classes/sun/nio/ch/AsynchronousServerSocketChannelImpl.java ! src/share/classes/sun/nio/ch/AsynchronousSocketChannelImpl.java ! src/share/classes/sun/nio/ch/CompletedFuture.java ! src/share/classes/sun/nio/ch/FileChannelImpl.java + src/share/classes/sun/nio/ch/FileDispatcher.java + src/share/classes/sun/nio/ch/Groupable.java ! src/share/classes/sun/nio/ch/Invoker.java ! src/share/classes/sun/nio/ch/PendingFuture.java - src/share/classes/sun/nio/ch/PortableAsynchronousFileChannelImpl.java + src/share/classes/sun/nio/ch/SimpleAsynchronousFileChannelImpl.java ! src/share/classes/sun/nio/ch/ThreadPool.java - src/share/classes/sun/nio/ch/ThreadPoolManager.java ! src/solaris/classes/sun/nio/ch/DatagramDispatcher.java ! src/solaris/classes/sun/nio/ch/DevPollArrayWrapper.java ! src/solaris/classes/sun/nio/ch/DevPollSelectorImpl.java ! src/solaris/classes/sun/nio/ch/EPollArrayWrapper.java ! src/solaris/classes/sun/nio/ch/EPollPort.java ! src/solaris/classes/sun/nio/ch/EPollSelectorImpl.java - src/solaris/classes/sun/nio/ch/FileDispatcher.java + src/solaris/classes/sun/nio/ch/FileDispatcherImpl.java ! src/solaris/classes/sun/nio/ch/PollSelectorImpl.java ! src/solaris/classes/sun/nio/ch/Port.java ! src/solaris/classes/sun/nio/ch/SinkChannelImpl.java ! src/solaris/classes/sun/nio/ch/SocketDispatcher.java ! src/solaris/classes/sun/nio/ch/SolarisEventPort.java ! src/solaris/classes/sun/nio/ch/SourceChannelImpl.java ! src/solaris/classes/sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java ! src/solaris/classes/sun/nio/ch/UnixAsynchronousSocketChannelImpl.java ! src/solaris/classes/sun/nio/fs/UnixChannelFactory.java ! src/solaris/native/sun/nio/ch/EPollPort.c ! src/solaris/native/sun/nio/ch/FileChannelImpl.c - src/solaris/native/sun/nio/ch/FileDispatcher.c + src/solaris/native/sun/nio/ch/FileDispatcherImpl.c ! src/solaris/native/sun/nio/ch/SocketDispatcher.c - src/windows/classes/sun/nio/ch/FileDispatcher.java + src/windows/classes/sun/nio/ch/FileDispatcherImpl.java ! src/windows/classes/sun/nio/ch/Iocp.java ! src/windows/classes/sun/nio/ch/WindowsAsynchronousChannelProvider.java ! src/windows/classes/sun/nio/ch/WindowsAsynchronousFileChannelImpl.java ! src/windows/classes/sun/nio/ch/WindowsAsynchronousServerSocketChannelImpl.java ! src/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java ! src/windows/native/sun/nio/ch/FileChannelImpl.c - src/windows/native/sun/nio/ch/FileDispatcher.c + src/windows/native/sun/nio/ch/FileDispatcherImpl.c ! src/windows/native/sun/nio/ch/WindowsAsynchronousFileChannelImpl.c + test/java/nio/channels/AsynchronousChannelGroup/Identity.java ! test/java/nio/channels/AsynchronousChannelGroup/Unbounded.java Changeset: baae64ef16f6 Author: xdono Date: 2008-09-11 11:25 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/baae64ef16f6 Added tag jdk7-b35 for changeset cf4894b78ceb ! .hgtags Changeset: 8484e830666e Author: tbell Date: 2008-09-12 14:34 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/8484e830666e Merge Changeset: def697d44797 Author: tbell Date: 2008-09-12 23:31 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/def697d44797 Merge Changeset: 43f808865d34 Author: alanb Date: 2008-09-16 22:06 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/43f808865d34 Merge ! .hgtags From alan.bateman at sun.com Tue Sep 16 14:46:58 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 16 Sep 2008 21:46:58 +0000 Subject: hg: nio/nio/langtools: 3 new changesets Message-ID: <20080916214704.70764DD96@hg.openjdk.java.net> Changeset: ae2a1418f0c8 Author: xdono Date: 2008-09-11 11:26 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/ae2a1418f0c8 Added tag jdk7-b35 for changeset 81f66dd906eb ! .hgtags Changeset: 258af9b67b7c Author: tbell Date: 2008-09-12 14:35 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/258af9b67b7c Merge Changeset: 7e2249b1c13d Author: tbell Date: 2008-09-12 23:32 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/7e2249b1c13d Merge From alan.bateman at sun.com Fri Sep 19 06:03:10 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Fri, 19 Sep 2008 13:03:10 +0000 Subject: hg: nio/nio/jdk: 16 new changesets Message-ID: <20080919130634.58EDADF86@hg.openjdk.java.net> Changeset: 044bfa235270 Author: dfuchs Date: 2008-09-17 13:40 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/044bfa235270 6748745: JConsole: plotters don't resize well when the window is resized Summary: part of the fix was contributed by jfdenise Reviewed-by: jfdenise ! src/share/classes/sun/tools/jconsole/Plotter.java ! src/share/classes/sun/tools/jconsole/inspector/XMBeanAttributes.java ! src/share/classes/sun/tools/jconsole/inspector/XPlotter.java ! src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java Changeset: a838a61887ac Author: alanb Date: 2008-09-17 21:26 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/a838a61887ac Merge Changeset: e671ad3d046b Author: alanb Date: 2008-09-17 21:33 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/e671ad3d046b Path#normalize missing implementation on Windows ! src/share/classes/java/nio/file/Path.java ! src/solaris/classes/sun/nio/fs/UnixPath.java ! src/windows/classes/sun/nio/fs/WindowsPath.java ! test/java/nio/file/Path/PathOps.java Changeset: 8980345492e2 Author: alanb Date: 2008-09-18 09:20 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/8980345492e2 AsynchronousFileChannel#truncate incorrect (non-Windows only) ! src/share/classes/sun/nio/ch/SimpleAsynchronousFileChannelImpl.java ! test/java/nio/channels/AsynchronousFileChannel/Basic.java Changeset: 5c52b8be8629 Author: alanb Date: 2008-09-19 10:13 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/5c52b8be8629 Hang closing AsynchronousSocketChannel on Windows when using fixed thread pool and all threads are busy ! src/share/classes/sun/nio/ch/AsynchronousChannelGroupImpl.java ! src/share/classes/sun/nio/ch/Invoker.java ! src/solaris/classes/sun/nio/ch/EPollPort.java ! src/solaris/classes/sun/nio/ch/SolarisEventPort.java ! src/windows/classes/sun/nio/ch/Iocp.java ! src/windows/classes/sun/nio/ch/PendingIoCache.java + test/java/nio/channels/AsynchronousChannelGroup/GroupOfOne.java Changeset: 008d1a19bce5 Author: alanb Date: 2008-09-19 11:05 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/008d1a19bce5 Restore no-arg delete method ! src/share/classes/java/nio/file/DirectoryStream.java ! src/share/classes/java/nio/file/FileAction.java ! src/share/classes/java/nio/file/FileRef.java ! src/share/classes/java/nio/file/FileStore.java ! src/share/classes/java/nio/file/FileSystem.java ! src/share/classes/java/nio/file/Path.java ! src/share/classes/java/nio/file/spi/AbstractPath.java ! test/java/nio/file/DirectoryStream/SecureDS.java ! test/java/nio/file/Files/ContentType.java ! test/java/nio/file/Path/CopyAndMove.java ! test/java/nio/file/Path/Links.java ! test/java/nio/file/Path/Misc.java ! test/java/nio/file/Path/SBC.java ! test/java/nio/file/Path/TemporaryFiles.java ! test/java/nio/file/TestUtil.java ! test/java/nio/file/attribute/Attributes/Basic.java ! test/java/nio/file/attribute/NamedAttributeView/Basic.java Changeset: eb342082e2b6 Author: jccollet Date: 2008-09-04 15:26 +0200 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/eb342082e2b6 6692802: HttpCookie needs to support HttpOnly attribute Summary: Added HttpOnly tag support to HttpCookie class. Reviewed-by: chegar, michaelm ! src/share/classes/java/net/HttpCookie.java ! test/java/net/CookieHandler/TestHttpCookie.java Changeset: d276b0716d13 Author: wetmore Date: 2008-09-05 00:43 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/d276b0716d13 Merge Changeset: bcb61dfc8514 Author: weijun Date: 2008-09-08 14:17 +0800 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/bcb61dfc8514 6740833: krb5.conf does not accept kdc=hostname (no spaces around =) Reviewed-by: xuelei ! src/share/classes/sun/security/krb5/Config.java Changeset: b0378bb50d83 Author: michaelm Date: 2008-09-11 17:46 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/b0378bb50d83 6744329: Exception in light weight http server code Reviewed-by: chegar ! src/share/classes/sun/net/httpserver/ChunkedOutputStream.java + test/com/sun/net/httpserver/bugs/B6744329.java Changeset: 80fe10573687 Author: mullan Date: 2008-09-11 14:05 -0400 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/80fe10573687 6465942: Add problem identification facility to the CertPathValidator framework Summary: Add support to the java.security.cert APIs for determining the reason that a certification path is invalid. Reviewed-by: vinnie ! src/share/classes/java/security/cert/CertPathValidatorException.java + src/share/classes/java/security/cert/PKIXReason.java ! src/share/classes/sun/security/provider/certpath/BasicChecker.java ! src/share/classes/sun/security/provider/certpath/ConstraintsChecker.java ! src/share/classes/sun/security/provider/certpath/CrlRevocationChecker.java ! src/share/classes/sun/security/provider/certpath/ForwardBuilder.java ! src/share/classes/sun/security/provider/certpath/KeyChecker.java ! src/share/classes/sun/security/provider/certpath/OCSPChecker.java ! src/share/classes/sun/security/provider/certpath/PKIXCertPathValidator.java ! src/share/classes/sun/security/provider/certpath/PKIXMasterCertPathValidator.java ! src/share/classes/sun/security/provider/certpath/PolicyChecker.java ! src/share/classes/sun/security/provider/certpath/ReverseBuilder.java ! src/share/classes/sun/security/provider/certpath/SunCertPathBuilder.java ! test/java/security/cert/CertPathValidator/nameConstraintsRFC822/ValidateCertPath.java + test/java/security/cert/CertPathValidatorException/ReasonTest.java + test/java/security/cert/CertPathValidatorException/Serial.java + test/java/security/cert/CertPathValidatorException/cert_file + test/java/security/cert/CertPathValidatorException/jdk6.serial ! test/java/security/cert/PolicyNode/GetPolicyQualifiers.java Changeset: 482a1857b598 Author: mullan Date: 2008-09-11 18:13 -0400 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/482a1857b598 Merge Changeset: 80fd09f239f4 Author: wetmore Date: 2008-09-15 00:41 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/80fd09f239f4 Merge Changeset: 0100b3e66894 Author: wetmore Date: 2008-09-16 00:34 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/0100b3e66894 Merge Changeset: e81a1ebde376 Author: wetmore Date: 2008-09-18 00:39 -0700 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/e81a1ebde376 Merge Changeset: 1b8a97586dc4 Author: alanb Date: 2008-09-19 11:28 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/1b8a97586dc4 Merge From alan.bateman at sun.com Fri Sep 19 06:12:09 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Fri, 19 Sep 2008 13:12:09 +0000 Subject: hg: nio/nio/langtools: 3 new changesets Message-ID: <20080919131219.1B231DF8E@hg.openjdk.java.net> Changeset: eff38cc97183 Author: jjg Date: 2008-09-16 18:35 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/eff38cc97183 6574134: Allow for alternative implementation of Name Table with garbage collection of name bytes Reviewed-by: darcy, mcimadamore ! src/share/classes/com/sun/tools/apt/mirror/AptEnv.java ! src/share/classes/com/sun/tools/javac/code/Attribute.java ! src/share/classes/com/sun/tools/javac/code/Scope.java ! src/share/classes/com/sun/tools/javac/code/Symbol.java ! src/share/classes/com/sun/tools/javac/code/Symtab.java ! src/share/classes/com/sun/tools/javac/code/Type.java ! src/share/classes/com/sun/tools/javac/code/Types.java ! src/share/classes/com/sun/tools/javac/comp/Annotate.java ! src/share/classes/com/sun/tools/javac/comp/Attr.java ! src/share/classes/com/sun/tools/javac/comp/Check.java ! src/share/classes/com/sun/tools/javac/comp/Enter.java ! src/share/classes/com/sun/tools/javac/comp/Flow.java ! src/share/classes/com/sun/tools/javac/comp/Lower.java ! src/share/classes/com/sun/tools/javac/comp/MemberEnter.java ! src/share/classes/com/sun/tools/javac/comp/Resolve.java ! src/share/classes/com/sun/tools/javac/comp/TransTypes.java ! src/share/classes/com/sun/tools/javac/jvm/ClassFile.java ! src/share/classes/com/sun/tools/javac/jvm/ClassReader.java ! src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java ! src/share/classes/com/sun/tools/javac/jvm/Code.java ! src/share/classes/com/sun/tools/javac/jvm/Gen.java ! src/share/classes/com/sun/tools/javac/main/JavaCompiler.java ! src/share/classes/com/sun/tools/javac/model/AnnotationProxyMaker.java ! src/share/classes/com/sun/tools/javac/model/JavacElements.java ! src/share/classes/com/sun/tools/javac/parser/JavacParser.java ! src/share/classes/com/sun/tools/javac/parser/Keywords.java ! src/share/classes/com/sun/tools/javac/parser/ParserFactory.java ! src/share/classes/com/sun/tools/javac/parser/Scanner.java ! src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java ! src/share/classes/com/sun/tools/javac/tree/Pretty.java ! src/share/classes/com/sun/tools/javac/tree/TreeInfo.java ! src/share/classes/com/sun/tools/javac/tree/TreeMaker.java ! src/share/classes/com/sun/tools/javac/util/ByteBuffer.java ! src/share/classes/com/sun/tools/javac/util/Convert.java ! src/share/classes/com/sun/tools/javac/util/Name.java + src/share/classes/com/sun/tools/javac/util/Names.java + src/share/classes/com/sun/tools/javac/util/SharedNameTable.java + src/share/classes/com/sun/tools/javac/util/UnsharedNameTable.java ! src/share/classes/com/sun/tools/javadoc/AnnotationTypeDocImpl.java ! src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java ! src/share/classes/com/sun/tools/javadoc/DocEnv.java ! src/share/classes/com/sun/tools/javadoc/SerializedForm.java ! src/share/classes/com/sun/tools/javadoc/TypeVariableImpl.java ! test/tools/javac/unit/util/convert/EnclosingCandidates.java Changeset: 8ec49685f4e8 Author: jjg Date: 2008-09-18 13:47 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/8ec49685f4e8 6728697: tools/javac/versionOpt.sh fails on OpenJDK builds Reviewed-by: darcy ! test/Makefile - test/bootclasspath-exclude.jtx + test/tools/javac/VersionOpt.java - test/tools/javac/versionOpt.sh Changeset: 829dea15ff99 Author: jjg Date: 2008-09-18 18:39 -0700 URL: http://hg.openjdk.java.net/nio/nio/langtools/rev/829dea15ff99 6744408: Extra ouput is appearing in stderr Reviewed-by: bpatel ! src/share/classes/com/sun/tools/javadoc/DocletInvoker.java From Alan.Bateman at Sun.COM Tue Sep 23 06:15:25 2008 From: Alan.Bateman at Sun.COM (Alan Bateman) Date: Tue, 23 Sep 2008 14:15:25 +0100 Subject: b95? Message-ID: <48D8EBED.9030802@sun.com> I plan to ask Xiomara to push a new build for us to the download area this evening. If anyone has any bugs/issues needed for this build then let me know today. -Alan. From alan.bateman at sun.com Tue Sep 23 10:37:45 2008 From: alan.bateman at sun.com (alan.bateman at sun.com) Date: Tue, 23 Sep 2008 17:37:45 +0000 Subject: hg: nio/nio/jdk: 3 new changesets Message-ID: <20080923173821.BDF2CD105@hg.openjdk.java.net> Changeset: 996c36a718df Author: alanb Date: 2008-09-22 13:46 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/996c36a718df Clean-ups in file system for nio2-b95 - Fixed several typos - Empty path case not specified by File#toPath - Restore spliting out of directory open failure in FileVisitor - Rename PathMatch#match to matches - Eliminate compilation warning on Linux - Eliminate dead code from FileChannelImpl ! src/share/classes/java/io/File.java ! src/share/classes/java/nio/file/CopyOption.java ! src/share/classes/java/nio/file/FileAction.java ! src/share/classes/java/nio/file/FileTreeWalker.java ! src/share/classes/java/nio/file/FileVisitor.java ! src/share/classes/java/nio/file/Files.java ! src/share/classes/java/nio/file/OpenOption.java ! src/share/classes/java/nio/file/Path.java ! src/share/classes/java/nio/file/PathMatcher.java ! src/share/classes/java/nio/file/SimpleFileVisitor.java ! src/share/classes/java/nio/file/WatchEvent.java ! src/share/classes/java/nio/file/spi/AbstractPath.java ! src/share/classes/sun/nio/ch/FileChannelImpl.java ! src/share/demo/nio/ZipFileSystem/com/sun/nio/zipfs/ZipFileSystem.java ! src/share/sample/nio/file/Chmod.java ! src/share/sample/nio/file/Copy.java ! src/share/sample/nio/file/WatchDir.java ! src/solaris/classes/sun/nio/fs/UnixFileSystem.java ! src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c ! src/windows/classes/sun/nio/fs/WindowsFileSystem.java ! test/demo/nio/ZipFileSystem/Sanity.java ! test/java/nio/file/Files/PrintFileTree.java ! test/java/nio/file/Files/SkipSiblings.java ! test/java/nio/file/Files/TerminateWalk.java ! test/java/nio/file/PathMatcher/Basic.java ! test/java/nio/file/TestUtil.java Changeset: 02892e2ecfa5 Author: alanb Date: 2008-09-22 15:10 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/02892e2ecfa5 Clean-ups for nio2-b95 - specify that the default group's pooled threads are daemon threads ! src/share/classes/java/nio/channels/AsynchronousChannelGroup.java ! src/share/classes/java/nio/channels/package-info.java ! src/share/classes/sun/nio/ch/AsynchronousChannelGroupImpl.java Changeset: cdcacff602f6 Author: alanb Date: 2008-09-23 16:01 +0100 URL: http://hg.openjdk.java.net/nio/nio/jdk/rev/cdcacff602f6 Added tag nio2-b95 for changeset 02892e2ecfa5 ! .hgtags From Rajendra.Gutupalli at Sun.COM Thu Sep 25 01:06:38 2008 From: Rajendra.Gutupalli at Sun.COM (Rajendra Gutupalli) Date: Thu, 25 Sep 2008 13:36:38 +0530 Subject: Existence of a file fails if it is created with SBC(C_N, W, D_ON_C) (Sol) Message-ID: <48DB468E.7040006@Sun.Com> Hi Alan, When a SekableByteChannel is opened with option DELETE_ON_CLOSE, any further attempt to check the existence of the file (and also deletion of the file) fails in Solaris. In Windows it is not a problem. Please see the following code and result in Solaris and Windows. import java.nio.ByteBuffer; import java.nio.channels.SeekableByteChannel; import java.nio.file.*; import static java.nio.file.StandardOpenOption.*; import java.io.File; public class Test3 { static SeekableByteChannel sbc = null; public static void main(String... args) throws Exception { File file = new File("testfile112"); Path path = file.toPath(); sbc = path.newSeekableByteChannel(CREATE_NEW, DELETE_ON_CLOSE, WRITE); ByteBuffer bb = ByteBuffer.wrap("Rajendra".getBytes()); sbc.write(bb); try { System.out.println("exists "+file.exists()); path.checkAccess(Access.EXISTS); path.delete(); } catch (Exception e) { e.printStackTrace(); } sbc.close(); } } bash-3.00$ $jdk/java Test3 exists false java.nio.file.NoSuchFileException: testfile112 at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixPath.checkAccess(UnixPath.java:804) at Test3.main(Test3.java:18) C:\NetBeansProjects\Adhoc\build\classes>d:\b95\bin\java -cp . adhoc.Test3 exists true Thanks Rajendra From Alan.Bateman at Sun.COM Thu Sep 25 01:07:05 2008 From: Alan.Bateman at Sun.COM (Alan Bateman) Date: Thu, 25 Sep 2008 09:07:05 +0100 Subject: Existence of a file fails if it is created with SBC(C_N, W, D_ON_C) (Sol) In-Reply-To: <48DB468E.7040006@Sun.Com> References: <48DB468E.7040006@Sun.Com> Message-ID: <48DB46A9.9050109@sun.com> Rajendra Gutupalli wrote: > Hi Alan, > > When a SekableByteChannel is opened with option DELETE_ON_CLOSE, any > further attempt to check the existence of the file (and also deletion > of the file) fails in Solaris. > In Windows it is not a problem. Please see the following code and > result in Solaris and Windows. Yes, the difference is observable but the spec is clear that the details as to when and how the file is deleted are implementation specific (and therefore unspecified). The intended use-case is a work file that you want removed automatically when the channel/stream is closed or the VM terminates. Ideally, the file should not be visible in the file system on Windows after it is opened with this option but it has always been the case that files pending delete are visible until the last handle is closed. -Alan. From Rajendra.Gutupalli at Sun.COM Thu Sep 25 02:52:23 2008 From: Rajendra.Gutupalli at Sun.COM (Rajendra Gutupalli) Date: Thu, 25 Sep 2008 15:22:23 +0530 Subject: Existence of a file fails if it is created with SBC(C_N, W, D_ON_C) (Sol) In-Reply-To: <48DB46A9.9050109@sun.com> References: <48DB468E.7040006@Sun.Com> <48DB46A9.9050109@sun.com> Message-ID: <48DB5F57.4060205@Sun.Com> Alan Bateman wrote: > Rajendra Gutupalli wrote: >> Hi Alan, >> >> When a SekableByteChannel is opened with option DELETE_ON_CLOSE, any >> further attempt to check the existence of the file (and also deletion >> of the file) fails in Solaris. >> In Windows it is not a problem. Please see the following code and >> result in Solaris and Windows. > Yes, the difference is observable but the spec is clear that the > details as to when and how the file is deleted are implementation > specific (and therefore unspecified). The intended use-case is a work > file that you want removed automatically when the channel/stream is > closed or the VM terminates. Ideally, the file should not be visible > in the file system on Windows after it is opened with this option but > it has always been the case that files pending delete are visible > until the last handle is closed. > Thanks Alan, I have one more query. Is it okay to create a file to which SekableByteChannel is opened for DELETE_ON_CLOSE. ie. In the following code snippet Should path.createFile() succeed or should it throw FileAlreadyExistsException? Path path = Paths.get("testfile"); //testfile does not exists SeekableByteChannel sbc = path.newSeekableByteChannel(CREATE_NEW,WRITE,DELETE_ON_CLOSE); path.createFile(); sbc.close(); As of now in Solaris path.createFile() creates the file "testfile"and after the execution of code the file "testfile" continues to exist. But in Windows it throws FAEE. Thanks Rajendra. From Alan.Bateman at Sun.COM Thu Sep 25 03:08:46 2008 From: Alan.Bateman at Sun.COM (Alan Bateman) Date: Thu, 25 Sep 2008 11:08:46 +0100 Subject: Existence of a file fails if it is created with SBC(C_N, W, D_ON_C) (Sol) In-Reply-To: <48DB5F57.4060205@Sun.Com> References: <48DB468E.7040006@Sun.Com> <48DB46A9.9050109@sun.com> <48DB5F57.4060205@Sun.Com> Message-ID: <48DB632E.5070301@sun.com> Rajendra Gutupalli wrote: > : > > I have one more query. Is it okay to create a file to which > SekableByteChannel is opened for DELETE_ON_CLOSE. ie. In the following > code snippet Should path.createFile() succeed or should it throw > FileAlreadyExistsException? > It cannot be specified and is essentially the same issue in a different form. You will see exactly the same if do you the following: Path file = ... OutputStream out = file.newOutputStream(); file.delete(); file.createFile(); That is, on Windows, the second attempt to create the file will throw an exception because the file remains "visible" in the file system until all open handles are closed. The reason you don't see this with the java.io package today is because FIS/FOS/RAF open files without the delete sharing option and this prevents open files from being deleted (a major gripe for many developers). In the new API then the delete option is enabled by default but if developers really want to do Windows specific things then there are extended open options beyond the spec that can be used to set the DOS sharing mode when opening a file. In any case, one of the intended uses of the DELETE_ON_CLOSE option is with files in the temporary directory so you can do this: SeekableByteChannel sbc = File.createTempFile("blah", "tmp") .newSeekableByteChannel(READ, WRITE, DELETE_ON_CLOSE); which gives you a channel to a temporary file that will be reclaimed when you finished with it or the VM terminates. In that scenario the file name is generated to be unique. -Alan. From deniz.turkoglu at opera.com Thu Sep 25 07:56:59 2008 From: deniz.turkoglu at opera.com (Deniz =?iso-8859-1?b?VPxya29nbHU=?=) Date: Thu, 25 Sep 2008 14:56:59 +0000 Subject: Building OpenJDK7 with NIO2 Message-ID: <20080925145659.9wqye9qwe88wwwsg@staff.opera.com> Hi everyone, I have written a tutorial on how to build JDK7 with NIO2 on Linux, and it is published at: http://my.opera.com/operaqa/blog/2008/09/25/working-with-nio2-part-i-building-openjdk7-with-nio2 Hopefully, it is interesting for some of you :) cheers, deniz From dturkoglu at opera.com Thu Sep 25 07:47:12 2008 From: dturkoglu at opera.com (Deniz Turkoglu) Date: Thu, 25 Sep 2008 16:47:12 +0200 Subject: Building OpenJDK7 with NIO2 Message-ID: Hi everyone, I have written a tutorial on how to build JDK7 with NIO2 on Linux, and it is published at: http://my.opera.com/operaqa/blog/2008/09/25/working-with-nio2-part-i-building-openjdk7-with-nio2 Hopefully, it is interesting for some of you :) cheers, deniz From Alan.Bateman at Sun.COM Thu Sep 25 13:17:05 2008 From: Alan.Bateman at Sun.COM (Alan Bateman) Date: Thu, 25 Sep 2008 21:17:05 +0100 Subject: Building OpenJDK7 with NIO2 In-Reply-To: <20080925145659.9wqye9qwe88wwwsg@staff.opera.com> References: <20080925145659.9wqye9qwe88wwwsg@staff.opera.com> Message-ID: <48DBF1C1.4080707@sun.com> Deniz T?rkoglu wrote: > > Hi everyone, > > I have written a tutorial on how to build JDK7 with NIO2 on Linux, and > it is published at: > http://my.opera.com/operaqa/blog/2008/09/25/working-with-nio2-part-i-building-openjdk7-with-nio2 > > > Hopefully, it is interesting for some of you :) > > cheers, > deniz > Thanks for the link and good to see that you are building OpenJDK successfully. I look forward to part 2. -Alan.