| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* gnu/classpath/jdwp/JdwpConstants.java: New file.
* vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java: New file.
|
|
|
|
|
| |
boilerplate address.
* vm/reference/gnu/classpath/jdwp/VMIdManager.java: Likewise.
|
|
|
|
|
|
| |
with example implementation of ID-management for JDWP back-end.
* gnu/classpath/jdwp/id/JdwpIdFactory.java: Removed. Now part of
VMIdManager.
|
|
|
|
|
| |
* vm/reference/gnu/classpath/jdwp/VMFrame.java(getValue):
Fix typo in comment.
|
|
|
|
| |
from build.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reference implementation of interface to VM for JDWP frame
management.
* gnu/classpath/jdwp/processor/StackFrameCommandSet.java:
Updated import.
(executeGetValues): Use VMFrame instead of Frame.
(executeSetValues): Use VMFrame instead of Frame.
(executeThisObject): Use VMFrame instead of Frame.
* gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java:
Updated import.
(executeFrames): Changed getLoc() to getLocation() and use
VMFrame instead of Frame.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes bug #22929
* libraries/javalib/java/net/NetworkInterface.java
(condense): New static private method.
(getNetworkInterfaces): Call condense().
(getByName, getByInetAddress): Call getNetworkInterfaces()
so that condensed result may be returned.
* vm/reference/java/net/VMNetworkInterface.java (getInterfaces):
Clarify return value in documentation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
jcl.h.
(createRawData): Removed unused variable method.
(getData): Removed unused variable field.
* native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c
(createRawData): Removed unused variable method.
(getData): Removed unused variable field.
* native/jni/java-nio/gnu_java_nio_charset_iconv_IconvEncoder.c
(createRawData): Removed unused variable method.
(getData): Removed unused variable field.
* native/jni/java-nio/java_nio_VMDirectByteBuffer.c
(Java_java_nio_VMDirectByteBuffer_init): Removed.
* vm/reference/java/nio/VMDirectByteBuffer.java (init): Removed.
* include/java_nio_VMDirectByteBuffer.h: Regenerated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/classpath/Pointer.java,
gnu/classpath/Pointer32.java,
gnu/classpath/Pointer64.java,
gnu/classpath/RawData.java,
gnu/classpath/RawData32.java,
gnu/classpath/RawData64.java,
gnu/java/awt/peer/gtk/GtkImage.java,
gnu/java/nio/charset/iconv/IconvDecoder.java,
gnu/java/nio/charset/iconv/IconvEncoder.java,
java/nio/Buffer.java,
java/nio/DirectByteBufferImpl.java,
java/nio/MappedByteBufferImpl.java,
native/jni/classpath/jcl.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c,
native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c,
native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c,
native/jni/java-nio/gnu_java_nio_charset_iconv_IconvEncoder.c,
native/jni/java-nio/java_nio_MappedByteBufferImpl.c,
native/jni/java-nio/java_nio_VMDirectByteBuffer.c,
vm/reference/java/nio/VMDirectByteBuffer.java: Renamed
references to gnu/classpath/RawData to gnu/classpath/Pointer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* NEWS: Added info about VM interfaces changes.
* java/lang/Class.java
(forName(String), forName(String, boolean, ClassLoader)): Simplified
VM interface.
* java/lang/ClassLoader.java
(loadedClasses): Removed field.
(defineClass(String,byte[],int,int,ProtectionDomain)): Removed
code to add class to loadedClasses.
* vm/reference/java/lang/VMClass.java
(forName(String)): Removed method.
(forName(String,boolean,ClassLoader)): New method.
(initialize): Removed method.
(loadArrayClass): Removed method.
* vm/reference/java/lang/VMClassLoader.java
(USE_VM_CACHE): Removed field.
(findLoadedClass): Made native.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* NEWS: Added comment about new VMProxy class.
* gnu/classpath/Configuration.java.in
(HAVE_NATIVE_GET_PROXY_CLASS): Removed.
(HAVE_NATIVE_GET_PROXY_DATA): Removed.
(HAVE_NATIVE_GENERATE_PROXY_CLASS): Removed.
* java/lang/reflect/Proxy.java
(getProxyClass): Changed to call VMProxy.
(getProxyClass0): Removed.
(getProxyData0): Removed.
(generateProxyClass0): Removed.
(ProxyData): Removed private modifier.
(POOL): Removed (was unused).
(INVOKESTATIC): Removed (was unused).
* vm/reference/java/lang/reflect/VMProxy.java: New file.
|
|
|
|
|
| |
* vm/reference/java/lang/VMClassLoader.java
(USE_VM_CACHE): Removed final modifier.
|
|
|
|
|
|
|
|
| |
* java/lang/ClassLoader.java
(loadedClasses): Set based on VMClassLoader.VM_USE_CACHE.
(defineClass): Modified to respect VMClassLoader.VM_USE_CACHE.
* vm/reference/java/lang/VMClassLoader.java
(VM_USE_CACHE): New field.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac (AC_CHECK_HEADERS): add 'sys/mman.h'.
(AC_CHECK_FUNCS): add mmap and related functions.
* include/java_nio_VMDirectByteBuffer.h: regenerated.
* java/nio/DirectByteBufferImpl.java (put): new method.
* native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c
(ALIGN_DOWN): new macro.
(ALIGN_UP): new macro.
(Java_gnu_java_nio_channels_FileChannelImpl_mapImpl): implemented.
* native/jni/java-nio/java_nio_MappedByteBufferImpl.c: updated
copyright years.
(ALIGN_DOWN): new macro.
(ALIGN_UP): new macro.
(get_pagesize): new function.
(get_raw_values): new function.
(Java_java_nio_MappedByteBufferImpl_unmapImpl): implemented.
(Java_java_nio_MappedByteBufferImpl_isLoadedImpl): implemented.
(Java_java_nio_MappedByteBufferImpl_loadImpl): implemented.
(Java_java_nio_MappedByteBufferImpl_forceImpl): implemented.
* native/jni/java-nio/java_nio_VMDirectByteBuffer.c
(Java_java_nio_VMDirectByteBuffer_put): renamed to
'Java_java_nio_VMDirectByteBuffer_put__Lgnu_classpath_RawData_2IB.'
(Java_java_nio_VMDirectByteBuffer_get__Lgnu_classpath_RawData_2I_3BII):
call 'ReleaseByteArrayElements' on the source byte array elements.
(Java_java_nio_VMDirectByteBuffer_put__Lgnu_classpath_RawData_2I_3BII):
new method.
* vm/reference/java/nio/VMDirectByteBuffer.java (put): new method.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/lang/ClassLoader.java: (vmdata): add
* vm/reference/java/lang/VMClass.java: (getModifiers()): add
new parameter ignoreInnerClassesAttrib
* vm/reference/java/lang/VMClassLoader.java: (defineClass()): remove
deprecated version (getPrimitiveClass(String)): remove
(getPrimitiveClass(char)): make native (loadClass()): make native
* vm/reference/java/lang/VMThread.java: (vmdata): add
(countStackFrames()): make native
* vm/reference/java/lang/VMThrowable.java: (vmdata): add
(fillInStackTrace()): make native
(getStackTrace()): make native
* vm/reference/java/lang/reflect/Constructor.java:
(parameterTypes, exceptionTypes): remove
(getParameterTypes(), getExceptionTypes()): make native
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(currentLoader): Don't create SecurityManager, directly call
VMObjectInputStream.currentClassLoader().
(resolveProxyClass): Use currentLoader().
* vm/reference/java/io/VMObjectInputStream.java
(currentClassLoader(SecurityManager)): Removed.
(currentClassLoader): New method.
* native/jni/java-io/java_io_VMObjectInputStream.c
(Java_java_io_VMObjectInputStream_currentClassLoader): Removed.
* include/java_io_VMObjectInputStream.h: Regenerated.
* NEWS: Document new interface and reference implementation.
|
|
|
|
|
|
|
| |
* java/lang/Class.java (getModifiers, newInstance): Changed
call to VMClass.getModifiers().
* vm/reference/java/lang/VMClass.java
(getModifiers(Class, boolean)): New method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* include/Makefile.am: Removed java_io_ObjectInputStream.h
and added java_io_VMObjectInputStream.h.
* include/java_io_ObjectInputStream.h: Removed.
* include/java_io_VMObjectInputStream.h: New file.
* java/io/ObjectInputStream.java
(currentClassLoader): Removed.
(allocateObject): Likewise.
* native/jni/java-io/Makefile.am: Removed java_io_ObjectInputStream.c
and added java_io_VMObjectInputStream.c.
* native/jni/java-io/java_io_ObjectInputStream.c: Removed.
* native/jni/java-io/java_io_VMObjectInputStream.c: New file.
* vm/reference/java/io/VMObjectInputStream.java: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* include/java_lang_Double.h,
include/java_lang_Object.h,
native/jni/java-lang/java_lang_Double.c,
native/jni/java-lang/java_lang_Object.c: Removed.
* include/java_lang_VMDouble.h: Regenerated.
* java/lang/Double.java
(static): Removed.
(toString): Call native method from VMDouble.
(parseDouble): Make non-native and call native method from VMDouble.
(toString): Removed.
* java/lang/Float.java
(toString): Call native method from VMDouble.
* java/lang/Object.java
(getClass): Refactored to call the native in java.lang.VMObject.
* include/Makefile.am: Don't generate java_lang_Double.h and
java_lang_Object.h.
* native/jni/java-lang/Makefile.am: Removed java_lang_Double.c and
java_lang_Object.c.
* native/jni/java-lang/java_lang_VMDouble.c
(initIDs): New method.
(toString): Likewise.
(parseDouble): Likewise.
* vm/reference/java/lang/VMDouble.java
(initIDs): Likewise.
(toString): Likewise.
(parseDouble): Likewise.
* vm/reference/java/lang/VMObject.java
(getClass): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/net/InetAddress.java
(static): Removed.
(getLocalHostname): Likewise.
(lookupInaddrAny): Likewise.
(getHostByAddr): Likewise.
(getHostByName): Likewise.
* java/net/NetworkInterface.java
(static): Likewise.
(getRealNetworkInterfaces): Likewise.
* native/jni/java-net/java_net_InetAddress.c: Renamed to...
* native/jni/java-net/java_net_VMInetAddress.c: New file.
Renamed from java_net_InetAddress.c. All native methods moved to class
VMInetAddress.
* native/jni/java-net/java_net_NetworkInterface.c: Renamed to...
Renamed from java_net_NetworkInterface.c. All native methods moved to
class VMNetworkInterface.
* native/jni/java-net/java_net_VMNetworkInterface.c: New file.
* vm/reference/java/net/VMInetAddress.java,
vm/reference/java/net/VMNetworkInterface.java: New files.
* include/java_net_InetAddress.h,
include/java_net_NetworkInterface.h: Removed.
* include/java_net_VMInetAddress.h,
include/java_net_VMNetworkInterface.h: New files.
* include/Makefile.am: Build new header files.
|
|
|
|
| |
on the boot loader class path in getResources()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/color/ClutProfileConverter.java,
gnu/java/awt/peer/ClasspathTextLayoutPeer.java,
gnu/java/awt/peer/gtk/GdkFontPeer.java,
gnu/java/awt/peer/gtk/GdkGlyphVector.java,
gnu/java/awt/peer/gtk/GdkGraphics2D.java,
gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java,
gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
gnu/java/awt/peer/gtk/GdkRobotPeer.java,
gnu/java/awt/peer/gtk/GdkTextLayout.java,
gnu/java/awt/peer/gtk/GtkButtonPeer.java,
gnu/java/awt/peer/gtk/GtkCheckboxMenuItemPeer.java,
gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
gnu/java/awt/peer/gtk/GtkChoicePeer.java,
gnu/java/awt/peer/gtk/GtkComponentPeer.java,
gnu/java/awt/peer/gtk/GtkContainerPeer.java,
gnu/java/awt/peer/gtk/GtkDialogPeer.java,
gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
gnu/java/awt/peer/gtk/GtkFontPeer.java,
gnu/java/awt/peer/gtk/GtkFramePeer.java,
gnu/java/awt/peer/gtk/GtkLabelPeer.java,
gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java,
gnu/java/awt/peer/gtk/GtkMenuItemPeer.java,
gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
gnu/java/awt/peer/gtk/GtkTextComponentPeer.java,
gnu/java/awt/peer/gtk/GtkToolkit.java,
gnu/java/awt/peer/gtk/GtkWindowPeer.java,
gnu/java/io/EncodingManager.java,
gnu/java/io/decode/DecoderUTF8.java,
gnu/java/net/protocol/file/Connection.java,
gnu/java/net/protocol/ftp/ActiveModeDTP.java,
gnu/java/net/protocol/ftp/BlockInputStream.java,
gnu/java/net/protocol/ftp/BlockOutputStream.java,
gnu/java/net/protocol/ftp/CompressedOutputStream.java,
gnu/java/net/protocol/ftp/StreamInputStream.java,
gnu/java/net/protocol/ftp/StreamOutputStream.java,
gnu/java/net/protocol/http/Cookie.java,
gnu/java/net/protocol/http/HTTPConnection.java,
gnu/java/net/protocol/http/HTTPDateFormat.java,
gnu/java/net/protocol/http/Request.java,
gnu/java/nio/SelectorImpl.java,
gnu/java/rmi/dgc/DGCImpl.java,
gnu/java/rmi/server/UnicastConnectionManager.java,
gnu/java/security/pkcs/SignerInfo.java,
gnu/java/security/provider/EncodedKeyFactory.java,
gnu/java/security/provider/GnuDHPublicKey.java,
gnu/java/security/provider/PKIXCertPathValidatorImpl.java,
gnu/java/security/x509/X500DistinguishedName.java,
gnu/java/security/x509/X509CRL.java,
gnu/java/security/x509/X509CRLEntry.java,
gnu/java/security/x509/X509Certificate.java,
gnu/java/security/x509/ext/AuthorityKeyIdentifier.java,
gnu/java/security/x509/ext/CertificatePolicies.java,
gnu/java/security/x509/ext/PolicyConstraint.java,
gnu/xml/aelfred2/SAXDriver.java,
gnu/xml/dom/Consumer.java,
gnu/xml/dom/DomCharacterData.java,
gnu/xml/dom/DomDocument.java,
gnu/xml/dom/DomDocumentBuilder.java,
gnu/xml/dom/DomIterator.java,
gnu/xml/dom/DomNode.java,
gnu/xml/dom/DomXPathExpression.java,
gnu/xml/dom/DomXPathResult.java,
gnu/xml/dom/JAXPFactory.java,
gnu/xml/dom/ls/DomLSException.java,
gnu/xml/libxmlj/dom/GnomeDocumentBuilder.java,
gnu/xml/libxmlj/dom/GnomeXPathNodeList.java,
gnu/xml/libxmlj/sax/GnomeXMLReader.java,
gnu/xml/libxmlj/transform/GnomeTransformer.java,
gnu/xml/libxmlj/transform/GnomeTransformerFactory.java,
gnu/xml/libxmlj/util/XMLJ.java,
gnu/xml/pipeline/CallFilter.java,
gnu/xml/pipeline/DomConsumer.java,
gnu/xml/pipeline/LinkFilter.java,
gnu/xml/pipeline/NSFilter.java,
gnu/xml/pipeline/TeeConsumer.java,
gnu/xml/pipeline/ValidationConsumer.java,
gnu/xml/pipeline/WellFormednessFilter.java,
gnu/xml/pipeline/XIncludeFilter.java,
gnu/xml/pipeline/XsltFilter.java,
gnu/xml/transform/ApplyImportsNode.java,
gnu/xml/transform/Bindings.java,
gnu/xml/transform/DocumentFunction.java,
gnu/xml/transform/FormatNumberFunction.java,
gnu/xml/transform/NodeNumberNode.java,
gnu/xml/transform/NumberNode.java,
gnu/xml/transform/Stylesheet.java,
gnu/xml/transform/SystemPropertyFunction.java,
gnu/xml/transform/Template.java,
gnu/xml/transform/TemplatesImpl.java,
gnu/xml/transform/TransformerImpl.java,
gnu/xml/transform/ValueOfNode.java,
gnu/xml/transform/XSLURIResolver.java,
gnu/xml/util/DoParse.java,
gnu/xml/util/Resolver.java,
gnu/xml/xpath/Expr.java,
gnu/xml/xpath/FunctionCall.java,
gnu/xml/xpath/RelationalExpr.java,
gnu/xml/xpath/Selector.java,
gnu/xml/xpath/XPathParser.java,
java/beans/XMLDecoder.java,
java/text/SimpleDateFormat.java,
javax/swing/JPopupMenu.java,
javax/swing/JSpinner.java,
javax/swing/SortingFocusTraversalPolicy.java,
javax/swing/SwingUtilities.java,
javax/swing/plaf/basic/BasicComboBoxEditor.java,
javax/swing/plaf/basic/BasicComboBoxRenderer.java,
javax/swing/tree/DefaultMutableTreeNode.java,
javax/xml/parsers/DocumentBuilder.java,
javax/xml/parsers/DocumentBuilderFactory.java,
javax/xml/transform/sax/SAXTransformerFactory.java,
vm/reference/java/lang/VMClassLoader.java,
vm/reference/java/lang/VMProcess.java,
vm/reference/java/lang/VMRuntime.java,
vm/reference/java/lang/VMSystem.java,
vm/reference/java/security/VMAccessController.java:
Removed unused imports and expanded starred
imports.
|
|
|
|
| |
import statement.
|
|
|
|
| |
* vm/reference/gnu/classpath/VMStackWalker.java: Doc fix.
|
|
|
|
|
|
| |
* vm/reference/java/nio/channels/VMChannels.java: Class shouldn't
be public.
(newInputStream,newOutputStream): No need to be public.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/nio/channels/Channels.java
(newInputStream(ReadableByteChannel)):
Call VMChannels.newInputStream(ReadableByteChannel).
(newOutputStream(WritableByteChannel):
Call VMChannels.newOutputStream(WritableByteChannel).
(newInputStream(FileChannelImpl)): Removed.
(newOutputStream(FileChannelImpl)): Likewise.
* vm/reference/java/nio/channels/VMChannels.java: Nw file.
* native/jni/java-nio/Makefile.am:
* native/jni/java-nio/java_nio_channels_Channels.c,
include/java_nio_channels_Channels.h: Removed.
* include/Makefile.am: Don't generate java_nio_channels_Channels.h.
Removed java_nio_channels_Channels.c.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* NEWS: Document changes.
* java/lang/Class.java (newInstance(), getClassLoader(),
forName(String), forName(String, boolean, ClassLoader)):
Use new VMStackWalker methods.
* java/lang/ClassLoader.java (getParent(), getSystemClassLoader()):
Likewise.
* java/lang/Package.java (getPackages()): Likewise.
* java/lang/SecurityManager.java (getClassContext()): Likewise.
* java/util/ResourceBundle.java (getBundle()): Likewise.
* java/lang/Runtime.java (load(), loadLibrary()): Load the native
library using the calling class' class loader.
* java/lang/System.java (load(), loadLibrary()): Likewise.
(currentClassLoader()): implement via currentLoadedClass().
* vm/reference/gnu/classpath/VMStackWalker.java: New class.
* vm/reference/java/lang/VMRuntime.java (nativeLoad()):
Add a ClassLoader parameter.
* vm/reference/java/lang/VMSecurityManager.java: Removed.
|
|
|
|
|
|
|
|
|
|
|
|
| |
now package-private.
(processThread, workList, reapedPid, reapedExitValue, state, cmd,
env, dir, exception, pid, stdin, stdout, stderr, exitValue): Now
package-private.
(nativeSpawn, nativeReap): Likewise.
* vm/reference/java/lang/VMThread.java (currentThread): Reordered
modifiers.
* vm/reference/java/security/VMAccessController.java
(DEFAULT_CONTEXT): Reordered modifiers.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/lang/Class.java (newInstance(), getClassLoader(),
forName(String), forName(String, boolean, ClassLoader)):
Use new VMStackWalker methods.
* java/lang/ClassLoader.java (getParent(), getSystemClassLoader()):
Likewise.
* java/lang/Package.java (getPackages()): Likewise.
* java/lang/SecurityManager.java (getClassContext()): Likewise.
* java/util/ResourceBundle.java (getBundle()): Likewise.
* java/lang/Runtime.java (load(), loadLibrary()): Load the native
library using the calling class' class loader.
* java/lang/System.java (load(), loadLibrary()): Likewise.
(currentClassLoader()): implement via currentLoadedClass().
* vm/reference/gnu/classpath/VMStackWalker.java: New class.
* vm/reference/java/lang/VMRuntime.java (nativeLoad()):
Add a ClassLoader parameter.
* vm/reference/java/lang/VMSecurityManager.java: Removed.
|
|
|
|
| |
of sleep(0,0) to previous, where we check for InterruptedException.
|
|
|
|
|
| |
treat Thread.sleep(0) like Thread.yield() for JDK compatibility,
and add a non-native implementation of VMThread.sleep().
|
|
|
|
|
|
| |
VMThread.sleep() is never called with zero arguments.
* vm/reference/java/lang/VMThread.java (sleep): Update documentation.
* NEWS: Mention change in VMThread.sleep() interface.
|
|
|
|
|
|
|
|
| |
* NEWS: Added entry about new method.
* java/lang/Runtime.java
(addShutdownHook): Added call to new method.
* vm/reference/java/lang/VMRuntime.java
(enableShutdownHooks): New method.
|
|
|
|
|
| |
* vm/reference/java/lang/VMClassLoader.java:
Reworked import statements.
|
|
|
|
|
|
|
|
|
| |
* vm/reference/gnu/classpath/VMSystemProperties.java (postInit):
Provide empty default implementation.
* java/lang/String.java: Replace all usage of System.arraycopy() with
VMSystem.arraycopy().
* java/lang/StringBuffer.java: Likewise.
|
|
|
|
|
| |
* vm/reference/gnu/classpath/VMSystemProperties.java:
Added import to make it compile.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/classpath/SystemProperties.java: New file.
* vm/reference/gnu/classpath/VMSystemProperties.java: New file.
* gnu/java/io/EncodingManager.java,
gnu/java/net/protocol/file/Connection.java,
java/io/File.java,
java/lang/Throwable.java,
java/security/Security.java,
java/security/cert/X509CRLSelector.java,
java/security/cert/X509CertSelector.java,
java/util/Locale.java,
vm/reference/java/lang/VMClassLoader.java:
Modified to use SystemProperties.
* java/lang/Class.java: Modified to use SecurityManager.current.
* java/lang/ClassLoader.java
(StaticData.systemClassLoader): New field.
(StaticData.static): New static initializer to install default
security manager.
(ClassLoader()): Modified to use StaticData.systemClassLoader.
ClassLoader(ClassLoader)): Modified to use SecurityManager.current.
(findSystemClass): Modified to use StaticData.systemClassLoader.
(getParent): Modified to use SecurityManager.current.
(getSystemResource,getSystemResources): Modified to use
StaticData.systemClassLoader.
(getSystemClassLoader): Modified to use SecurityManager.current and
StaticData.systemClassLoader.
(getExtClassLoaderUrls,getSystemClassLoaderUrls): Modified to use
SystemProperties.
(defaultGetSystemClassLoader): Modified to use SecurityManager.current
and SystemProperties.
(getSystemProperty): Removed.
* java/lang/Runtime.java
(securityManager): Removed.
(defaultProperties): Removed.
(static): Removed.
(Runtime): Modified to use SystemProperties.
(exit,removeShutdownHook,halt,runFinalizersOnExit,exec,load,loadLib):
Modified to use SecurityManager.current.
(loadLibrary): Modified to use SecurityManager.current and changed
call to System.mapLibraryName to VMRuntime.mapLibraryName.
* java/lang/SecurityManager.java
(current): New field.
* java/lang/System.java
(systemClassLoader): Removed.
(properties): Removed.
(in,out,err): Initialize in-line.
(static): Removed.
(initLoadLibrary): Removed.
(initProperties): Removed.
(initSystemClassLoader): Removed.
(initSecurityManager): Removed.
(setIn,setOut,setErr,setSecurityManager,getSecurityManager,getenv):
Modified to use SecurityManager.current.
(getProperties,setProperties,getProperty(String),
getProperty(String,String),setProperty): Modified to use
SecurityManager.current and SystemProperties.
(mapLibraryName): Modified to call VMRuntime.mapLibraryName.
* java/lang/Thread.java: Modified to use SecurityManager.current.
* java/lang/ThreadGroup.java: Modified to use SecurityManager.current.
* native/jni/java-lang/java_lang_VMSystem.c
(Java_java_lang_VMSystem_isWordsBigEndian): Removed.
* vm/reference/java/lang/VMRuntime.java
(nativeGetLibname): Removed (renamed to mapLibraryName).
(mapLibraryName): New method.
(insertSystemProperties): Removed.
* vm/reference/java/lang/VMSystem.java
(isWordsBigEndian): Removed.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/EventDispatchThread.java,
java/awt/Toolkit.java,
java/io/ObjectStreamClass.java,
java/lang/reflect/Proxy.java,
java/net/URL.java,
java/security/SecureRandom.java,
java/util/Timer.java,
java/util/prefs/AbstractPreferences.java,
vm/reference/java/lang/VMProcess.java:
Don't catch java.lang.ThreadDeath.
|
|
|
|
|
|
|
| |
* java/io/File.java
(canWrite): Moved directory write test to VMFile.
* vm/reference/java/io/VMFile.java
(canWriteDirectory): New method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/classpath/RawData.java: Made abstract.
* gnu/classpath/RawData32.java,
gnu/classpath/RawData64.java: New files.
* include/Makefile.am:
Don't generate java_nio_DirectByteBufferImpl.h anymore
and generate java_nio_VMDirectByteBuffer.h now.
* java/nio/DirectByteBufferImpl.java:
Moved native methods to VMDirectByteBuffer.
* java/nio/MappedByteBufferImpl.java:
Use methods from VMDirectBteBuffer.
* native/jni/java-nio/Makefile.am:
Removed java_nio_DirectByteBufferImpl.c
and added java_nio_VMDirectByteBuffer.c
* include/java_nio_DirectByteBufferImpl.h,
native/jni/java-nio/java_nio_DirectByteBufferImpl.c:
Removed.
* include/java_nio_VMDirectByteBuffer.h,
* native/jni/java-nio/java_nio_VMDirectByteBuffer.c,
* vm/reference/java/nio/VMDirectByteBuffer.java:
New files.
|
|
|
|
|
|
|
|
|
| |
* java/io/File.java:
(createTempFile): Use VMFile.IS_DOS_8_3 instead of separatorChar
to determine file system naming restrictions.
* vm/reference/java/io/VMFile.java
(caseSensitive): Renamed to IS_CASE_SENSITIVE.
(IS_DOS_8_3): New field.
|
|
|
|
|
| |
* vm/reference/java/lang/VMClassLoader.java: Added imports
that I forgot in the previous commit.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/lang/ClassLoader.java
(getExtClassLoaderUrls): New method.
(getSystemClassLoaderUrls): New method.
(defaultGetSystemClassLoader): New method.
(getSystemProperty): New method.
* vm/reference/java/lang/VMClassLoader.java
(getResource): Changed to provide default implementation.
(getResources): Likewise.
(getSystemClassLoader): Removed broken default implementation
and changed to call ClassLoader.defaultGetSystemClassLoader.
|
|
|
|
|
|
| |
* vm/reference/java/lang/reflect/Method.java
(toString): Fix names of arguments.
(getUserTypeName): New Method.
|
|
|
|
| |
(getDefaultTimeZoneId): Remove debug output.
|
|
|
|
| |
explicit constructor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
struct tm and for for global timezone variable.
* include/Makefile.am: Generate include/java_util_VMTimeZone.h.
* include/java_util_TimeZone.h: Removed.
* include/java_util_VMTimeZone.h: Added.
* java/util/TimeZone.java (defaultZone): Use VMTimeZone.
(getDefaultTimeZone): Make package private. Check that GMToffset
contains at least one digit.
(getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
VMTimeZone.
* vm/reference/java/util/VMTimeZone.java: New file with above methods.
* native/jni/java-util/Makefile.am: Compile new java_util_VMTimeZone.c.
* native/jni/java-util/java_util_TimeZone.c: Removed.
* native/jni/java-util/java_util_VMTimeZone.c: New file.
* native/target/generic/target_generic_misc.h
(TARGET_NATIVE_MISC_GET_TIMEZONE_STRING): Removed unused macro.
* NEWS: Mention TimeZone/VMTimeZone split.
|