|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
SF.net SVN: jikesrvm:[15699] rvmroot/trunkRevision: 15699
http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=15699&view=rev Author: dframpton-oss Date: 2009-05-31 23:57:04 +0000 (Sun, 31 May 2009) Log Message: ----------- See RVM-700. We do not need to eagerly initialize InetAddress, this should avoid the long startup delay on ubuntu. Server sockets tested. Modified Paths: -------------- rvmroot/trunk/build/primordials/Classpath-0.97.2.txt rvmroot/trunk/rvm/src/org/jikesrvm/VM.java Removed Paths: ------------- rvmroot/trunk/libraryInterface/Common/src/java/net/JikesRVMSupport.java Modified: rvmroot/trunk/build/primordials/Classpath-0.97.2.txt =================================================================== --- rvmroot/trunk/build/primordials/Classpath-0.97.2.txt 2009-05-27 02:27:06 UTC (rev 15698) +++ rvmroot/trunk/build/primordials/Classpath-0.97.2.txt 2009-05-31 23:57:04 UTC (rev 15699) @@ -334,7 +334,6 @@ Ljava/net/URLClassLoader$2; Ljava/net/URL; Ljava/net/URL$1; -Ljava/net/InetAddress; ## These protocol handlers are necessary for Classpath 0.13 and later, ## since we are now initializing URLClassLoader before dynamic class Deleted: rvmroot/trunk/libraryInterface/Common/src/java/net/JikesRVMSupport.java =================================================================== --- rvmroot/trunk/libraryInterface/Common/src/java/net/JikesRVMSupport.java 2009-05-27 02:27:06 UTC (rev 15698) +++ rvmroot/trunk/libraryInterface/Common/src/java/net/JikesRVMSupport.java 2009-05-31 23:57:04 UTC (rev 15699) @@ -1,51 +0,0 @@ -/* - * This file is part of the Jikes RVM project (http://jikesrvm.org). - * - * This file is licensed to You under the Eclipse Public License (EPL); - * You may not use this file except in compliance with the License. You - * may obtain a copy of the License at - * - * http://www.opensource.org/licenses/eclipse-1.0.php - * - * See the COPYRIGHT.txt file distributed with this work for information - * regarding copyright ownership. - */ -package java.net; -import org.jikesrvm.SizeConstants; - -/** - * Library support interface of Jikes RVM - */ -public class JikesRVMSupport implements SizeConstants { - - private static byte[] toArrayForm(int address) { - byte[] addr = new byte[4]; - addr[0] = (byte)((address>>(3*BITS_IN_BYTE)) & 0xff); - addr[1] = (byte)((address>>(2*BITS_IN_BYTE)) & 0xff); - addr[2] = (byte)((address>>BITS_IN_BYTE) & 0xff); - addr[3] = (byte)(address & 0xff); - return addr; - } - - public static InetAddress createInetAddress(int address) { - return createInetAddress(address, null); - } - - public static InetAddress createInetAddress(int address, String hostname) { - return new Inet4Address(toArrayForm(address), hostname); - } - - public static int getFamily(InetAddress inetaddress) { - if (inetaddress instanceof Inet4Address) { - return 2; - } else if (inetaddress instanceof Inet6Address) { - return 10; - } else { - throw new org.jikesrvm.UnimplementedError("Unknown InetAddress family"); - } - } - - public static void setHostName(InetAddress inetaddress, String hostname) { - inetaddress.hostName = hostname; - } -} Modified: rvmroot/trunk/rvm/src/org/jikesrvm/VM.java =================================================================== --- rvmroot/trunk/rvm/src/org/jikesrvm/VM.java 2009-05-27 02:27:06 UTC (rev 15698) +++ rvmroot/trunk/rvm/src/org/jikesrvm/VM.java 2009-05-31 23:57:04 UTC (rev 15699) @@ -405,7 +405,6 @@ runClassInitializer("gnu.java.nio.charset.EncodingHelper"); runClassInitializer("java.lang.reflect.Proxy"); runClassInitializer("java.lang.reflect.Proxy$ProxySignature"); - runClassInitializer("java.net.InetAddress"); } runClassInitializer("java.util.logging.Logger"); if (VM.BuildForHarmony) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Jikesrvm-commits mailing list Jikesrvm-commits@... https://lists.sourceforge.net/lists/listinfo/jikesrvm-commits |
| Free embeddable forum powered by Nabble | Forum Help |