Name: dkC59003 Date: 09/22/99
HotSpot 2.0beta-E fails to pass the test nsk/regression/b4222557 (see source below):
return value is 97, signal raised with Signal.raise method is not handled by
a user-defined handler.
This occurred only on machines (2 of them) with 2 CPU. Two different machines
each with single processor were OK.
See also bugreport #4263367 filed against classic.
Log and test source follow:
$ java -version
java version "1.2.2"
Java(TM) HotSpot Server VM (2.0beta, mixed mode, build E)
$ java b4222557
$ echo $?
97
----------------------------------------------------------- b4222557.java
import java.io.PrintStream;
import sun.misc.*;
public class b4222557 {
private static int res = 2/*STATUS_FAILED*/;
public static void main(String argv[]) {
System.exit(run(argv, System.out) + 95/*STATUS_TEMP*/);
}
public static int run(String args[], PrintStream out) {
Signal.handle(new Signal("INT"), new SignalHandler() {
public void handle(Signal sig) {
res = 0/*STATUS_PASSED*/;
}
});
Signal.raise(new Signal("INT"));
return res;
}
}
======================================================================
- relates to
-
JDK-4222557 sun.misc.Signal does not works with HotSpot
-
- Closed
-
-
JDK-4263367 sun.misc.Signal.handle does not work for Signal.raise
-
- Closed
-