summaryrefslogtreecommitdiff
path: root/lang/jamvm
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-06-05 14:08:43 +0000
committerrillig <rillig@pkgsrc.org>2007-06-05 14:08:43 +0000
commit52f35ac87e31e621aa2cdb5c2b740dacee3e4f80 (patch)
treeafbd8a23b96086c75cd5277723a52e6dd1e75dcd /lang/jamvm
parent02ecfae04a55536a89c53f8536be0ab47f660bee (diff)
downloadpkgsrc-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')
-rw-r--r--lang/jamvm/Makefile5
-rw-r--r--lang/jamvm/PLIST3
-rw-r--r--lang/jamvm/distinfo11
-rw-r--r--lang/jamvm/patches/patch-aa53
-rw-r--r--lang/jamvm/patches/patch-bsdosc14
5 files changed, 49 insertions, 37 deletions
diff --git a/lang/jamvm/Makefile b/lang/jamvm/Makefile
index dc4b5c6bd44..a81bfc50bf7 100644
--- a/lang/jamvm/Makefile
+++ b/lang/jamvm/Makefile
@@ -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 --git a/lang/jamvm/PLIST b/lang/jamvm/PLIST
index 7845a78b5af..c498a2cb167 100644
--- a/lang/jamvm/PLIST
+++ b/lang/jamvm/PLIST
@@ -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 --git a/lang/jamvm/distinfo b/lang/jamvm/distinfo
index 4e304679fa8..4ff8ce1462f 100644
--- a/lang/jamvm/distinfo
+++ b/lang/jamvm/distinfo
@@ -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 --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>
+