NetBSD Problem Report #45604

From www@NetBSD.org  Fri Nov 11 19:30:33 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0EB9063CB12
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 11 Nov 2011 19:30:33 +0000 (UTC)
Message-Id: <20111111193031.4FF4663BEB2@www.NetBSD.org>
Date: Fri, 11 Nov 2011 19:30:31 +0000 (UTC)
From: lifanov@mail.lifanov.com
Reply-To: lifanov@mail.lifanov.com
To: gnats-bugs@NetBSD.org
Subject: updated lang/jamvm to version 1.5.4
X-Send-Pr-Version: www-1.0

>Number:         45604
>Category:       pkg
>Synopsis:       updated lang/jamvm to version 1.5.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 11 19:35:00 +0000 2011
>Closed-Date:    Sat Feb 08 09:49:29 +0000 2014
>Last-Modified:  Sat Feb 08 09:49:29 +0000 2014
>Originator:     Nikolai Lifanov
>Release:        DragonFly 2.13
>Organization:
>Environment:
>Description:
lang/jamvm was not updated since 2008.
Now it is!

>How-To-Repeat:

>Fix:
begin 644 jamvm.tar.gz
M'XL(`.UVO4X``^U8>4_C2A)__TY_BA*#=@>"'=\YYF4T&0A,@!Q*@%UIM8HZ
M=B=I<&S+=L(<XGWV5VWG,)D`F14PVO=2N>SNJNI?U]7EN-0;YJ_I>#K.__92
MI"A*P31!_"*M_J8WJFJ9!:V@JX8.BJIKFOH;F"^&*$.3**8A0@E]/WZ,[W;$
MF/O(_.KF_D_(7?H_H+$]8M'SQ\%/^%\KJ`KZW[",PM;_KT$9_[?/Z]V+EU@#
M[6$9QL/^UPQUD?^ZJ@K_*SKFO_(28%;I;^[_C[8_'C,OAMTFBS]UCW9)GWMI
M0$C7=$J)^)H%R&(F.\@]VYTX+'_M<7F4G7!Y7WRNIV/9I:L382Q?TS`[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:/>^='Q>?6D>Y<=JG_JWJ40<QM#W$#E/?#`!Q`S=,;.[G=J]^QI#_W:
MFVO-:L]%+$8X%<#?]Z(!]`@`9(&]L[$]9\Y>JGWN*@"A5V!.5$=TRA(<E5WQ
M3:3D>F=A6E0I1G9(+IW88$-S"<!^%SZ(\UKL2-[%=;%9A]]_G\=.?C\YS1TV
AB.21#+"?)_.X^M5=SY:VM*4M;6E+?V_Z$_*GH'H`*```
`
end

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/45604: updated lang/jamvm to version 1.5.4
Date: Wed, 23 Nov 2011 21:55:58 +0900

 failed to build on NetBSD-5.1-i386

 gmake[4]: Entering directory `/work/obj/pkgsrc/lang/jamvm/work/jamvm-1.5.4/src/interp/engine'
 /bin/sh ../../../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../../../src  -I../../../src -I../../../src/interp -I../../../src -I/usr/pkg/include -I/usr/include -fno-reorder-blocks -O2 -I/usr/pkg/include -I/usr/include -MT interp.lo -MD -MP -MF .deps/interp.Tpo -c -o interp.lo interp.c
   cc -DHAVE_CONFIG_H -I. -I../../../src -I../../../src -I../../../src/interp -I../../../src -I/usr/pkg/include -I/usr/include -fno-reorder-blocks -O2 -I/usr/pkg/include -I/usr/include -MT interp.lo -MD -MP -MF .deps/interp.Tpo -c interp.c -o interp.o
 interp.c: In function 'executeJava':
 interp.c:1003: error: invalid lvalue in assignment
 interp.c:1003: error: invalid lvalue in assignment
 interp.c:1003: error: invalid lvalue in assignment
 gmake[4]: *** [interp.lo] Error 1
 gmake[4]: Leaving directory `/work/obj/pkgsrc/lang/jamvm/work/jamvm-1.5.4/src/interp/engine'


 -- 
 OBATA Akio / obache@NetBSD.org

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45604 CVS commit: pkgsrc/lang/jamvm
Date: Sat, 8 Feb 2014 09:41:29 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sat Feb  8 09:41:29 UTC 2014

 Modified Files:
 	pkgsrc/lang/jamvm: Makefile distinfo
 	pkgsrc/lang/jamvm/patches: patch-aa
 Added Files:
 	pkgsrc/lang/jamvm/patches: patch-src_interp_engine_interp.h
 Removed Files:
 	pkgsrc/lang/jamvm/patches: patch-bsdosc

 Log Message:
 Update jamvm to 1.5.4.
 Based on PR pkg/45604 by Nikolai Lifanov.

 JamVM 1.5.4 released on 1st January 2010
 ========================================

 A summary of changes since 1.5.3:

 - GC changes:

   - Mark phase rewritten to use an explicit fixed-size mark stack,
     with a moving heap scan pointer.  The previous recursive marking
     could lead to stack overflow when marking complex, deeply-linked
     structures.  If the explicit mark stack overflows, a slower,
     fallback mechanism is used of scanning the heap.  The new mark
     phase is upto 50% faster than the old recursive marking.

   - bug fix for unallocated blocks within the heap of >= 1 GB.

 - JNI changes:

   - Updated to JNI version 1.6.  This adds the function
     GetObjectRefType().

   - Fully implemented JNI weak global references (NewWeakGlobalRef
     and DeleteWeakGloablRef).  Note, these are different to Java
     Soft/Weak/Phantom References which have been supported since
     JamVM 1.4.0.

   - verbose:jni now shows details of the opening of native libraries.
     If a library fails to open a diagnostic message is shown (if
     available).  This is intended to help debug common library
     problems.

   - bug fix for ToReflected[Method|Field] and GetSuperClass.  A
     local reference must be created for the return value.

 - Platform changes:

   - Interpreter inlining (aka code-copying JIT) now enabled by
     default on ARM systems.  Testing on Cortex-A8 indicates
     82% speed improvement on integer benchmarks, and 55% on
     floating-point.

   - If cross-compiling, and interpreter inlining is enabled, runtime
     relocation checks will be enabled (relocation information is
     normally generated at compile time; as this can't be done
     when cross-compiling it must be done at runtime, but it
     increases the size of the executable by ~30%).

   - Initial port to Sparc/FreeBSD.  My thanks to Per Ola Ingvarsson
     for architecture dependent definitions.  Interpreter inlining
     (aka code-copying JIT) is currently not supported due to missing
     code for flushing the instruction/data caches, and branch
     generation. It also requires libffi, which is enabled by default.

   - Changes to x86 and x86_64 across all platforms to zero/sign
     extend return values from native methods whose size is less
     than an int (i.e. boolean, byte, char and short).  This is
     necessary due to changes in code produced by gcc >= 4.3.

   - Rare race-condition in thin-locking code on x86 and x86_64
     architectures, leading to deadlock.  On modern x86 CPUs, an
     extra memory barrier is required.  Seen intermittently while
     running a thread intensive benchmark using at least 4 cores.

   - Extensive changes to support 64-bit Big Endian systems.  These
     were previously supported, but support was completely broken
     with the introduction of the new object layout in JamVM 1.5.2.

 - Miscellaneous fixes:

   - Interpreter inlining bug fix: reference to memory after it
     had been freed

   - java.lang.reflect.VMField getAnnotation() implemented.  This
     has been missing since the reflection rework in JamVM 1.5.2.

   - ThreadMXBean: fixes for getThreadInfoForId (VMThreadMXBeanImpl).

     - Did not correctly report lock or lock owner, when the thread was
       blocked on an object which was thin-locked by another thread

     - It was using a constructor which has since been removed

   - Fixes for NULL handling in findClassFromSignature() and
     utf8CharLen()

   - Fixed memory leak in bytecode rewriting.  Due to missing
     parantheses, old bytecode stream was not being freed (for
     example, this leaks 47K when running "Hello, World")

   - Bug-fix for theoretical race-condition in thread deletion when
     notifying joining threads after thread ID has been reused.

 JamVM 1.5.3 released on 14th April 2009
 =======================================

 JamVM 1.5.3 is primarily a bug-fix release.  It fixes issues seen
 while running Eclipse 3.4.2 and JRuby 1.2.0RC2, and adds some minor
 features.  A summary of the changes:

 - Zip/Jar support in the boot classloader has been rewritten to
   no longer require the Zip/Jar files to be mmap-ed read/write.
   This increases shareability between multiple VM instances, and
   improves memory-usage on embedded systems.

 - JNI invocation API:
   - set thread-self to NULL when thread detaches (if the thread tries
     to re-attach, it appears to still be attached)

   - init args_count in dummy stack frame (fix problem if the thread
     detaches and then re-attaches)

 - Do not create a library unloader for libraries loaded by the bootstrap
   loader if they have an JNI_OnUnload method (the bootstrap loader is
   never unloaded, and so they will never be called).  Fixes a SEGV with
   JRuby.

 - Fix to annotation handling.  When the annotation value is an array,
   the native annotation parser constructs an Object array.  However,
   the method return value is the specific type.  This leads to an
   AnnotationTypeMismatchException.  The fix coerces the Object
   array to the correct type.

 - Simple implementation of java.lang.management.VMManagementFactory
   (returns no memory pool, memory manager or GC names).  Sufficient
   to run JRuby.

 - Implemented package support in the bootstrap class loader.  Package
   information is obtained from the manifest file if it exists.  However,
   GNU Classpath's glibj.zip's manifest has no package information.
   The class library is therefore recognised by the presence of
   java/lang/Object.class, and appropriate package information is
   constructed.

 - Fix broken implementation of VMClass.getSimpleName() (use the
   implementation from gcj)

 - Default Java stack size increased to 256K from 64K

 - Fix to bootstrap loader getResources() when the bootclasspath
   entry is relative (prepend the current working directory)

 - Fix minor memory leak in bootstrap loader getResources()

 - Add --enable-tls option to configure, enabling thread-local-storage
   (__thread) to be disabled

 JamVM 1.5.2 released on 1st February 2009
 =========================================

 A summary of changes since 1.5.1:

 - Interpreter inlining changes

   - Basic-blocks are now inlined across block boundaries removing
     the need for dispatching between blocks in the case of
     fall-through control flow

   - Control-flow within inlined sequences now patched with real jumps,
     removing the need for computed jumps

   - Control flow between non-shared sequences now patched, replacing
     dispatch with real jumps

   - Simple basic-block profiling is now implemented.  This considerably
     reduces the size of the code-cache, without reducing performance

 - Reworked Object layout

   - Previously, on 64-bit machines the object layout was wasteful, with
     padding on fields less than 64-bits (to preserve 64-bit alignment).
     The new object layout on average reduces heap usage by approx
     10 - 15%

   - On 32-bit machines, 64-bit fields are now 64-bit aligned (without
     introducing extra padding if possible)

 - Various alignment fixes

   - 64-bit alignment of operand stack
   - 64-bit alignment of static variable data

 - Reflection support

   - Reworking required for new object layout

   - Reworked to use VMConstructor, VMMethod, etc.

   - Reworked to improve field access and method invocation performance
     (this offsets the extra costs of the VM interface, and improves
     performance over 1.5.1).

   - Access permission checks take precedence over other errors

   - Class/method signatures : do not convert slash to dots

 - JNI fixes/improvements

   - Class references returned by JNI now use local references

   - Throw InstantiationException not InstantiationError when allocating
     objects and the class is an interface or abstract

   - Reworked JNI global references

     - Fix memory leak when expanding list

     - Improve performance (optimise case where references are
       created/deleted in a stack-like manner)

 - OpenSolaris/Solaris/x86 port

 - GC fixes

   - Fix race-condition in registering references with the GC

   - Separate "Async GC" thread is now disabled by default.  It didn't
     improve performance, and could increase power-consumption on
     embedded systems

 - Exception handling

   - Fix method-skipping when filling in stack trace (methods could
     be incorrectly excluded from the trace when a class subclassed
     Throwable)

   - Uncaught exceptions in the "main" thread will now use the thread's
     uncaughtExceptionHandler

 - Various compatibility command line options recognised (and
   ignored).  These include -XX:PermSize and XX:MaxPermSize
   required to build OpenJDK.

 - sun.misc.Unsafe

   - Object methods (compareAndSwapObject, etc.) fixed on 64-bit
     machines

   - Implemented support for thread park and unpark (removing previous
     highly inefficient "empty" implementation)

 - Use thread-local storage (__thread), if available, instead of
   pthread keys

 - Various minor race-conditions seen while running Dacapo benchmarks

 - Strict-aliasing fixes when compiled with GCC 4.3, interpreter
   stack-caching is enabled, and interpreter inlining is on

 - A large amount of code-tidying throughout the VM

 - Minimum heap size increased to 16MB

 - Various compiler warnings.


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 pkgsrc/lang/jamvm/Makefile
 cvs rdiff -u -r1.8 -r1.9 pkgsrc/lang/jamvm/distinfo
 cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/jamvm/patches/patch-aa
 cvs rdiff -u -r1.1 -r0 pkgsrc/lang/jamvm/patches/patch-bsdosc
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/lang/jamvm/patches/patch-src_interp_engine_interp.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 08 Feb 2014 09:49:29 +0000
State-Changed-Why:
Updated.  Thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.