classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to VM interface


From: John Leuner
Subject: Changes to VM interface
Date: 18 Dec 2002 14:52:09 +0000

I have made some changes to System/VMSystem and
ClassLoader/VMClassLoader resulting from Julian Dolby's patches for
JRVM.

System now instantiates System.in, .out and .err through calls to
VMSystem.makeStandardxxxStream().

The reference implementation of VMSystem has three new methods which
implement the default behaviour. If your VM needs to do something
special with these streams at startup, you can provide a different
implementation in VMSystem.

All the native methods that were in System have moved to VMSystem.

Classpath provides default native implementations for some of these
methods:

setIn0
setOut0
setErr0
currentTimeMillis
isWordsBigEndian

Code from ClassLoader.getSystemClassLoader has been moved into the
reference implementation for VMClassLoader.

Changelog entries:

2002-12-18  John Leuner  <address@hidden>

        * java/lang/System.java: delegated native calls to VMSystem
        added three new calls VMSystem.makeStandardxxxStream
        * vm/reference/java/lang/VMSystem.java: added 3 methods for
default
        implementation of makeStandardxxxStream
        * native/jni/java-lang/Makefile.am (libjavalang_la_SOURCES):
changed System to VMSystem
        * native/jni/java-lang/java_lang_VMSystem.c: Added this file
(copied from System.c)
        * native/jni/java-lang/java_lang_System.c:   Deleted this file
        * include/java_lang_VMSystem.h: Added this file
        * include/java_lang_System.h: Deleted this file

2002-12-18  John Leuner  <address@hidden>

        * vm/reference/java/lang/reflect/Method.java: Fixed javadoc
        * vm/reference/java/lang/VMClassLoader.java: copied code from
ClassLoader
        for getSystemClassLoader
        * java/lang/ClassLoader.java: Delegate getSystemClassLoader
        to VMClassLoader



Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]