diff options
author | rillig <rillig@pkgsrc.org> | 2007-06-05 14:08:43 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-06-05 14:08:43 +0000 |
commit | 52f35ac87e31e621aa2cdb5c2b740dacee3e4f80 (patch) | |
tree | afbd8a23b96086c75cd5277723a52e6dd1e75dcd /lang/jamvm/patches | |
parent | 02ecfae04a55536a89c53f8536be0ab47f660bee (diff) | |
download | pkgsrc-52f35ac87e31e621aa2cdb5c2b740dacee3e4f80.tar.gz |
Updated jamvm to 1.4.5.
JamVM 1.4.5 released on 4th February 2007
=========================================
A summary of changes since 1.4.4:
- Support for Java 1.5 Annotations. This includes the following
methods for reflection access to Annotations:
- VMClass.getDeclaredAnnotations
- java.lang.reflect.Field.getDeclaredAnnotations
- java.lang.reflect.Constructor
- getAnnotation, getDeclaredAnnotations, getParameterAnnotations
- java.lang.reflect.Method
- getDefaultValue, getAnnotation, getDeclaredAnnotations,
getParameterAnnotations
- Class sun.misc.Unsafe implemented, providing VM support for
JSR-166 (Concurrency Utilities).
- Ported to the mipsel architecture. This is a full port, with hand-
coded assembler to handle the construction of a call-frame for calling
JNI native methods. This supports the O32 ABI (for other ABIs libffi
can be used).
- Bug fix in registering references external to the heap with the GC.
The table should be locked for references registered after VM
initialisation.
- Bug fix when expanding the heap and the free-list is empty.
- Fixed race-condition when rewriting OPC_NEW in the indirect-threaded
interpreter (by default the direct-threaded interpreter is used).
- Bug fix in the GC compaction phase. The class-loader references
within the loaded DLL hashtable must be updated when the class-loader
is moved during compaction. This is a regression introduced in
JamVM 1.4.3 (DLL unloading), seen while running Eclipse.
- Bug fix in JNI_GetStringUTFLength. The reported length should not
include space for a NULL terminator.
- Various compile fixes for uClibc. Support for the JNI invocation
API requires glibc features not implemented in uClibc.
- Command line option -fullversion implemented.
JamVM 1.4.4 released on 2nd November 2006
=========================================
A summary of changes since 1.4.3:
- Full JNI Invocation API implemented, enabling JamVM to be linked into
another program.
- JNI_CreateJavaVM, DestroyJavaVM, AttachCurrentThread,
- AttachCurrentThreadAsDaemon, DetachCurrentThread
- JNI_GetDefaultJavaVMInitArgs
- JamVM is now also built as a shared library (lib/libjvm.so).
- The executable (bin/jamvm) is statically linked with this library
instead of being a wrapper. This is because the shared library
runs slower than static linking on some architectures. As JamVM
is small this is not a problem.
- Improved class-loader and shared library support
- When a class-loader (and all its classes) is unloaded all shared
libraries loaded by the class-loader are unloaded and JNI_OnUnload
called (if defined)
- A shared library can no longer be opened by two class-loaders
at once
- A class can only resolve native methods defined in shared libraries
opened by its defining class-loader
- Major re-working of thread/locking code to support additional Java 1.5
functionality
- Thread.getState() implemented
- correct thread states and their transistions (e.g. BLOCKING,
WAITING, TIMED_WAITING, etc.)
- native support for the ThreadMXBean thread system management API
- thread creation statistics (count of live, started and
peak threads)
- Information about a thread (ThreadInfo)
- execution information (thread state, stack backtrace to
a particular depth, object upon which the thread is blocked
or waiting to be notified)
- synchronization statistics (counts of the times the thread
has been blocked or waited for notification)
- Thread.interrupt() re-implemented fixing several bugs
- if a thread was waiting on a monitor, previous implementation
required the monitor lock to be obtained. If a 3rd thread
was holding this, the interrupt could not occur to avoid
deadlock. New thread-code does not require lock to be obtained.
- in rare circumstances another thread waiting on the monitor
could be notified (when there was pending notifications,
and then an interrupt, and subsequent threads waiting on the
monitor).
- a thread waiting on a thin-lock (waiting for inflation)
could erroneously report an InterruptedException
- GC bug fix for class-unloading when only using the compactor
(-Xcompactalways). The compactor in some circumstances could move
objects ontop of the object holding the native class-loader VM data
before it was freed leading to a SEGV.
- Bug fix for abstract methods which fell through previous
AbstractMethodError checks (using a stub method)
- AbstractMethodError now also gives the method name
- Bug fix to not allow abstract classes to be instantiated
- Bug fix for NULL in identityHashCode (a regression in JamVM 1.4.3)
- Bug fix for NULL in JNI method GetStringUTFLength|Chars
- Bug fix for $ in native method names
- FirstNonNullClassLoader implemented
- Access-checking bug fix. In reflection method/field access, also
check class access in addition to method/field.
- Ensure created threads have a native stack size of at least 2MB. This
fixes SEGVs due to stack overflow seen on OpenBSD/Darwin
(default 512KB).
- Property sun.boot.class.path is now also defined in addition to
java.boot.classpath. Certain applications look for the Sun property
(e.g. Dacapo bloat benchmark).
- Extra bootclasspath command line options
- bootclasspath/v overrides the default VM classes path
- bootclasspath/c overrides the default GNU Classpath classes path
- java.endorsed.dirs support added
- directories are scanned and any jar/zip files are added to the
boot classpath.
- Improved thread dump (produced via ctrl-\). Now shows thread state.
- JamVM by default now installs in its own directory (/usr/local/jamvm)
JamVM 1.4.3 released on 21st May 2006
=====================================
A summary of changes since 1.4.2:
- Heap compaction implemented. Previously on some programs the object
allocation pattern could lead to a highly fragmented heap (lots of
small holes). This caused early heap expansion, and in some cases
an OutOfMemory exception (a result of repeated heap expansion until
heap fully expanded).
JamVM now includes a mark/compact collector in addition to the
mark/sweep GC. This is normally ran after forced finalisation, and
before heap expansion. It removes fragmentation by sliding the objects
to the bottom of the heap, closing the holes.
Two new command line options can be used to control compaction :
-Xnocompact : don't do compaction and just use the mark/sweep
collector. This is equivalent to JamVM 1.4.2 behaviour.
-Xcompactalways : do compaction on every garbage-collection. In
some cases this may lead to less collections, but
the compactor is slower than the sweeper.
- The interned String table is now garbage-collected (JamVM uses its
own interned String hashtable).
- Additional Java 1.5 support
- New methods within VMClass implemented
- isMemberClass, isLocalClass, isAnonymousClass,
getEnclosingClass, getEnclosingMethod,
getEnclosingConstructor, getClassSignature.
- Generic signature support in reflection classes (Constructor, Method
Field).
- getTypeParameters, getSignature, getGenericExceptionTypes,
getGenericParameterTypes, toGenericString, getGenericType,
getGenericReturnType
- Uncaught exceptions will now use the thread's uncaughtExceptionHandler
(if available).
- Fix for Non-ASCII characters in class name parameter
- affected methods Class.ForName, ClassLoader.defineClass
- Use getcwd() instead of PWD enviroment variable for user.dir
property. This fixes problems seen on some applications.
- Fix in VMClass.defineClass on 64-bit machines (protection domain
parameter assumed to be 4 bytes).
- Minor interpreter optimisation in direct-mode with handler
prefetch (reload of handler address in aload_0/getfield pair).
- Command line options -version and -showversion now prints a "Java
compatible" version number. This is to work with shell scripts which
parse the output to get the Java version.
- Set the java.home property to the JAVA_HOME environment variable if set.
- Ported to Mac OS X on Intel.
- Runtime.availableProcessors implemented (Linux, Mac OS X and BSD
systems).
- Updated to be compatible with Classpath 0.91.
- Merged in changes to GNU Classpath's VM reference classes and
JamVM's classes.
- Various compiler warnings.
Diffstat (limited to 'lang/jamvm/patches')
-rw-r--r-- | lang/jamvm/patches/patch-aa | 53 | ||||
-rw-r--r-- | lang/jamvm/patches/patch-bsdosc | 14 |
2 files changed, 39 insertions, 28 deletions
diff --git a/lang/jamvm/patches/patch-aa b/lang/jamvm/patches/patch-aa index 944b72ce6e7..730907db37f 100644 --- a/lang/jamvm/patches/patch-aa +++ b/lang/jamvm/patches/patch-aa @@ -1,36 +1,33 @@ -$NetBSD: patch-aa,v 1.2 2006/05/16 21:33:03 tonio Exp $ +$NetBSD: patch-aa,v 1.3 2007/06/05 14:08:43 rillig Exp $ ---- configure.orig 2006-01-18 11:08:36.000000000 +0100 -+++ configure -@@ -1943,19 +1943,25 @@ host_os=`echo $ac_cv_host | sed 's/^\([^ - - - case "$host" in --i[456]86-*-linux*) host_cpu=i386 host_os=linux ;; --i[456]86-*-kfreebsd*) host_cpu=i386 host_os=linux ;; -+i[3456]86-*-linux*) host_cpu=i386 host_os=linux ;; -+i[3456]86-*-kfreebsd*) host_cpu=i386 host_os=linux ;; - i386-*-openbsd*) host_os=linux libdl_needed=no ;; - i386-*-freebsd*) host_os=linux libdl_needed=no ;; -+i386-*-netbsd*) host_os=linux libdl_needed=no ;; -+i386-*-dragonfly*) host_os=linux libdl_needed=no ;; +--- configure.orig 2007-02-05 04:23:22.000000000 +0100 ++++ configure 2007-06-05 16:03:18.000000000 +0200 +@@ -2029,18 +2029,24 @@ i[3456]86-*-kfreebsd*) host_cpu=i386 hos + i[3456]86-*-darwin*) host_cpu=i386 host_os=darwin ;; + i386-*-openbsd*) host_os=bsd libdl_needed=no ;; + i386-*-freebsd*) host_os=bsd libdl_needed=no ;; ++i386-*-netbsd*) host_os=bsd libdl_needed=no ;; ++i386-*-dragonfly*) host_os=bsd libdl_needed=no ;; x86_64-*-linux*) host_os=linux ;; - amd64-*-openbsd*) host_os=linux libdl_needed=no ;; - amd64-*-freebsd*) host_os=linux libdl_needed=no ;; -+amd64-*-netbsd*) host_os=linux libdl_needed=no ;; -+amd64-*-dragonfly*) host_os=linux libdl_needed=no ;; + hppa*-*-linux*) host_cpu=parisc host_os=linux ;; + mipsel-*-linux*) host_cpu=mips host_os=linux ;; + amd64-*-openbsd*) host_os=bsd libdl_needed=no ;; + amd64-*-freebsd*) host_os=bsd libdl_needed=no ;; ++amd64-*-netbsd*) host_os=bsd libdl_needed=no ;; ++amd64-*-dragonfly*) host_os=bsd libdl_needed=no ;; arm*-*-linux*) host_cpu=arm host_os=linux ;; - arm*-*-openbsd*) host_cpu=arm host_os=linux libdl_needed=no ;; - arm*-*-freebsd*) host_cpu=arm host_os=linux libdl_needed=no ;; -+arm*-*-netbsd*) host_cpu=arm host_os=linux libdl_needed=no ;; + arm*-*-openbsd*) host_cpu=arm host_os=bsd libdl_needed=no ;; + arm*-*-freebsd*) host_cpu=arm host_os=bsd libdl_needed=no ;; ++arm*-*-netbsd*) host_cpu=arm host_os=bsd libdl_needed=no ;; powerpc*-*-linux*) host_cpu=powerpc host_os=linux ;; - powerpc*-*-openbsd*) host_cpu=powerpc host_os=linux libdl_needed=no ;; - powerpc*-*-freebsd*) host_cpu=powerpc host_os=linux libdl_needed=no ;; -+powerpc*-*-netbsd*) host_cpu=powerpc host_os=linux libdl_needed=no ;; + powerpc*-*-openbsd*) host_cpu=powerpc host_os=bsd libdl_needed=no ;; + powerpc*-*-freebsd*) host_cpu=powerpc host_os=bsd libdl_needed=no ;; powerpc-*-darwin*) host_os=darwin ;; ++powerpc*-*-netbsd*) host_cpu=powerpc host_os=bsd libdl_needed=no ;; *) { { echo "$as_me:$LINENO: error: $host not supported" >&5 echo "$as_me: error: $host not supported" >&2;} -@@ -1984,7 +1990,7 @@ if test "${enable_int_caching+set}" = se + { (exit 1); exit 1; }; } ;; +@@ -2177,7 +2183,7 @@ if test "${enable_int_caching+set}" = se enableval="$enable_int_caching" else @@ -39,7 +36,7 @@ $NetBSD: patch-aa,v 1.2 2006/05/16 21:33:03 tonio Exp $ enable_int_caching=no fi fi; -@@ -3289,13 +3295,13 @@ done +@@ -20751,13 +20757,13 @@ done @@ -56,7 +53,7 @@ $NetBSD: patch-aa,v 1.2 2006/05/16 21:33:03 tonio Exp $ cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF -@@ -3358,7 +3364,7 @@ if test $ac_cv_lib_pthread_pthread_self +@@ -20820,7 +20826,7 @@ if test $ac_cv_lib_pthread_pthread_self #define HAVE_LIBPTHREAD 1 _ACEOF diff --git a/lang/jamvm/patches/patch-bsdosc b/lang/jamvm/patches/patch-bsdosc new file mode 100644 index 00000000000..01cc9abb96d --- /dev/null +++ b/lang/jamvm/patches/patch-bsdosc @@ -0,0 +1,14 @@ +$NetBSD: patch-bsdosc,v 1.1 2007/06/05 14:08:44 rillig Exp $ + +Needed for NetBSD 3.0. + +--- src/os/bsd/os.c.orig 2007-01-12 01:20:14.000000000 +0100 ++++ src/os/bsd/os.c 2007-06-05 16:01:18.000000000 +0200 +@@ -24,6 +24,7 @@ + #include <stdlib.h> + #include <dlfcn.h> + #include <sys/types.h> ++#include <sys/param.h> + #include <sys/sysctl.h> + #include <pthread.h> + |