JDK-4666534 : REGRESSION: JCK1.4: -server -Xcomp cause 10 vm tests fail in Windows
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 1.4.1
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS:
    windows_98,windows_nt,windows_2000,windows_xp windows_98,windows_nt,windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2002-04-11
  • Updated: 2002-06-19
  • Resolved: 2002-05-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.1 betaFixed
Related Reports
Relates :  
Description

Name: icR10030			Date: 04/11/2002



Filed By       : J2SE-SQA [###@###.###
JDK            : Fails on jdk1.4.1-b08, Passes with JDK1.4.0
JCK            : JCK1.4
Platform[s]    : Windows 2000, Windows XP, Windows Me, Windows NT 4.0
switch/Mode    : -server -Xcomp
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Tests  : vm/jni/NativeMethods/nmtd001/nmtd00101m6/nmtd00101m6.html 
                 vm/jni/NativeMethods/nmtd001/nmtd00101m7/nmtd00101m7.html 
                 vm/jni/NativeMethods/nmtd004/nmtd00401m1/nmtd00401m1.html 
                 vm/instr/invokeinterface/invokeinterface012/invokeinterface01203m1/invokeinterface01203m1.html 
                 vm/instr/invokeinterface/invokeinterface012/invokeinterface01205m1/invokeinterface01205m1.html 
                 vm/instr/invokestatic/invokestatic017/invokestatic01703m1/invokestatic01703m1.html 
                 vm/instr/invokestatic/invokestatic017/invokestatic01705m1/invokestatic01705m1.html 
                 vm/instr/dcmpop/dcmpop004/dcmpop00401m1/dcmpop00401m1.html 
                 vm/instr/invokespecial/invokespecial010/invokespecial01003m1/invokespecial01003m1.html 
                 vm/instr/invokespecial/invokespecial010/invokespecial01005m1/invokespecial01005m1.html 

Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/jni/NativeMethods/nmtd001/nmtd00101m6/
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/jni/NativeMethods/nmtd001/nmtd00101m7/
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/jni/NativeMethods/nmtd004/nmtd00401m1/
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/instr/invokeinterface/invokeinterface012/invokeinterface01203m1/
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/instr/invokeinterface/invokeinterface012/invokeinterface01205m1/
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/instr/invokestatic/invokestatic017/invokestatic01703m1/
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/instr/invokestatic/invokestatic017/invokestatic01705m1/
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/instr/dcmpop/dcmpop004/dcmpop00401m1/
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/instr/invokespecial/invokespecial010/invokespecial01003m1/
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/vm/instr/invokespecial/invokespecial010/invokespecial01005m1/

jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/jni/NativeMethods/nmtd001/nmtd00101m6/nmtd00101m6.jtr
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/jni/NativeMethods/nmtd001/nmtd00101m7/nmtd00101m7.jtr
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/jni/NativeMethods/nmtd004/nmtd00401m1/nmtd00401m1.jtr
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/instr/invokeinterface/invokeinterface012/invokeinterface01203m1/invokeinterface01203m1.jtr
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/instr/invokeinterface/invokeinterface012/invokeinterface01205m1/invokeinterface01205m1.jtr
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/instr/invokestatic/invokestatic017/invokestatic01703m1/invokestatic01703m1.jtr
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/instr/invokestatic/invokestatic017/invokestatic01705m1/invokestatic01705m1.jtr
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/instr/dcmpop/dcmpop004/dcmpop00401m1/dcmpop00401m1.jtr
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/instr/invokespecial/invokespecial010/invokespecial01003m1/invokespecial01003m1.jtr
/net/jtgb4u4c.eng/export/sail15/results/hopper/b08/jck14/win32/win2000_server_comp_linux-2/workDir/vm/instr/invokespecial/invokespecial010/invokespecial01005m1/invokespecial01005m1.jtr

How to reproduce:
=================
--------Script START---------------------
#!/bin/sh

JCK="c:/jck1.4/JCK-runtime-14"
CLASSPATH="${JCK}/classes;${JCK}/javatest.jar"
JDK=c:/jdk1.4.1
PATH=${JCK}/lib

$JDK/bin/java -showversion -server -Xcomp -Xfuture 	-cp $CLASSPATH         -Djava.security.policy=$JCK/lib/jck.policy         -Djava.security.auth.policy=$JCK/lib/java.auth.policy         -Djava.security.auth.login.config=$JCK/lib/java.login.config         javasoft.sqe.tests.vm.jni.nmtd001.nmtd00101m6.nmtd00101m6         	-platform.nativeCodeSupported true
--------Script END----------------------

Test output:
============
Wrong return value #0
Wrong return value #1
Wrong return value #2
Wrong return value #3
Wrong return value #4

Specific Machine Info:
======================
Hostname: linux-21
Os: Windows XP Home Edition
Hostname: linux-2
Os: Windows 2000
Hostname: linux-18
Os: Windows Me
Hostname: linux-20
Os: Windows NT 4.0

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper-beta FIXED IN: hopper-beta INTEGRATED IN: hopper-beta VERIFIED IN: hopper-beta
14-06-2004

EVALUATION Can not get this test case to work, I get the following: C:\>ksh script.ksh java version "1.4.1-beta" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b09) Java HotSpot(TM) Server VM (build 1.4.1-beta-b09, compiled mode) Library loading: loadLibrary("nmtd00101m6") throws: java.lang.UnsatisfiedLinkError: no nmtd00101m 6 in java.library.path loadLibrary("jckjni") throws: java.lang.UnsatisfiedLinkError: no jckjni in java. library.path ###@###.### 2002-04-22 The original JCK test probably built some libs that need to go with this bug. Please copy those lib bits into a directory in GammaBase/Bugs/4666534 and we'll try this again. ###@###.### 2002-05-03 Its a JNI issue, I have it reproducing currently on my PC :) ###@###.### 2002-05-04 Bug is a bad interaction between recent work fixing a byte-masking bug and the sign-extension that needs to happen on byte values returned from natives. Java bytes are "clean" - the high-order bits are all sign-extensions. Native C bytes are not "clean" - the high-order bits are junk and to be ignored. The signature the VM gives a native call makes it appear as if it will return a "clean" byte instead of a "dirty" byte. C2 inserts sign-extension code but the optimizer kicks in and decides it's not needed. Fixed by teaching C2's native stub generator that C routines return dirty subwords. ###@###.### 2002-05-08
08-05-2002