java/98586: /usr/local/bin/jar does not work due to the extra -XX:+UseMembar opt

Achilleas Mantzios achill at matrix.gatewaynet.com
Tue Jun 6 02:30:31 PDT 2006


>Number:         98586
>Category:       java
>Synopsis:       /usr/local/bin/jar does not work due to the extra -XX:+UseMembar opt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-java
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 06 09:30:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Achilleas Mantzios
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
Dynacom tankers Mgmt Ltd.
>Environment:
System: FreeBSD smadev.internal.net 6.1-STABLE FreeBSD 6.1-STABLE #5: Mon Jun 5 17:41:22 EEST 2006 root at smadev.internal.net:/usr/obj/usr/src/sys/SMADEV3 i386


>Description:
	JAVAVM_OPTS_diablo_jdk1_5_0=-XX:+UseMembar in  /usr/local/etc/javavm_opts.conf causes this opt to be passed in other java programs like jar which do not respect the -X switches.
>How-To-Repeat:
	With diablo-jdk-1.5.0.06.00 installed and with a /usr/local/etc/javavms like
% cat /usr/local/etc/javavms 
/usr/local/diablo-jdk1.5.0/bin/java # DiabloCaffe

just try to run

% jar
>Fix:

Apply this patch:
--- /usr/local/etc/javavm_opts.conf.dist        Tue Jun  6 11:39:10 2006
+++ /usr/local/etc/javavm_opts.conf     Tue Jun  6 12:06:09 2006
@@ -49,4 +49,4 @@
 #
 
 # This is required on SMP machines for Diablo JDK 1.5.0_06 build 0
-JAVAVM_OPTS_diablo_jdk1_5_0=-XX:+UseMembar
+JAVAVM_OPTS_diablo_jdk1_5_0_java=-XX:+UseMembar


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-java mailing list