pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/jamvm Updated jamvm to 1.4.5.
details: https://anonhg.NetBSD.org/pkgsrc/rev/ee80d97ae8c6
branches: trunk
changeset: 529473:ee80d97ae8c6
user: rillig <rillig%pkgsrc.org@localhost>
date: Tue Jun 05 14:08:43 2007 +0000
description:
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:
lang/jamvm/Makefile | 5 +--
lang/jamvm/PLIST | 3 +-
lang/jamvm/distinfo | 11 ++++---
lang/jamvm/patches/patch-aa | 53 +++++++++++++++++++---------------------
lang/jamvm/patches/patch-bsdosc | 14 ++++++++++
5 files changed, 49 insertions(+), 37 deletions(-)
diffs (142 lines):
diff -r aa84b3f22aed -r ee80d97ae8c6 lang/jamvm/Makefile
--- a/lang/jamvm/Makefile Tue Jun 05 13:38:04 2007 +0000
+++ b/lang/jamvm/Makefile Tue Jun 05 14:08:43 2007 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2006/05/21 15:43:09 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2007/06/05 14:08:43 rillig Exp $
#
-DISTNAME= jamvm-1.4.2
-PKGREVISION= 1
+DISTNAME= jamvm-1.4.5
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jamvm/}
diff -r aa84b3f22aed -r ee80d97ae8c6 lang/jamvm/PLIST
--- a/lang/jamvm/PLIST Tue Jun 05 13:38:04 2007 +0000
+++ b/lang/jamvm/PLIST Tue Jun 05 14:08:43 2007 +0000
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2006/05/21 15:43:09 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2007/06/05 14:08:43 rillig Exp $
bin/jamvm-java
java/jamvm/bin/jamvm
java/jamvm/include/jni.h
+java/jamvm/lib/libjvm.la
java/jamvm/share/jamvm/classes.zip
@dirrm java/jamvm/share/jamvm
@dirrm java/jamvm/share
diff -r aa84b3f22aed -r ee80d97ae8c6 lang/jamvm/distinfo
--- a/lang/jamvm/distinfo Tue Jun 05 13:38:04 2007 +0000
+++ b/lang/jamvm/distinfo Tue Jun 05 14:08:43 2007 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2006/05/16 21:33:03 tonio Exp $
+$NetBSD: distinfo,v 1.4 2007/06/05 14:08:43 rillig Exp $
-SHA1 (jamvm-1.4.2.tar.gz) = cfda95e52261d58e535a0c8ec03878304e9560c7
-RMD160 (jamvm-1.4.2.tar.gz) = ca9d26f90dd04e5aaefb1c33dda59a4f41456e31
-Size (jamvm-1.4.2.tar.gz) = 285593 bytes
-SHA1 (patch-aa) = 4de74aaee822305f09ae4c0402f82715c8f216b4
+SHA1 (jamvm-1.4.5.tar.gz) = ad22e8eedf375230eae2917660c09c9063ffafd8
+RMD160 (jamvm-1.4.5.tar.gz) = 63221c64e285349494f9a3166dce7e2a58381a55
+Size (jamvm-1.4.5.tar.gz) = 547407 bytes
+SHA1 (patch-aa) = e6cb00c963d82dd0617fb20e1e8a35527d891dd6
+SHA1 (patch-bsdosc) = ac223f74472ec6e9ed69cef04a0d343aa942e8de
diff -r aa84b3f22aed -r ee80d97ae8c6 lang/jamvm/patches/patch-aa
--- a/lang/jamvm/patches/patch-aa Tue Jun 05 13:38:04 2007 +0000
+++ b/lang/jamvm/patches/patch-aa Tue Jun 05 14:08:43 2007 +0000
@@ -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 @@
enable_int_caching=no
fi
fi;
-@@ -3289,13 +3295,13 @@ done
+@@ -20751,13 +20757,13 @@ done
@@ -56,7 +53,7 @@
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 -r aa84b3f22aed -r ee80d97ae8c6 lang/jamvm/patches/patch-bsdosc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/jamvm/patches/patch-bsdosc Tue Jun 05 14:08:43 2007 +0000
@@ -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>
+
Home |
Main Index |
Thread Index |
Old Index