-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
1.3.1
-
x86, sparc
-
linux, solaris_7
Name: icR10030 Date: 01/15/2001
Platforms:
=============
RedHat 6.2
JDK, switches Info:
===================
java version "1.3.1beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1beta-b13)
Java HotSpot(TM) Client VM (build 1.3.1beta-b13-debug, mixed mode)
-XX:+ZombieALot -XX:+UseOnStackReplacement -XX:OnStackReplaceThreshold=3
How to reproduce:
====================
Run classfile Test under java_g:
java_g -XX:+ZombieALot -XX:+UseOnStackReplacement -XX:OnStackReplaceThreshold=3 Test
Classfile Test.java:
=====================
import java.awt.*;
public class Test {
public static void main(String argv[]) {
int err=0;
Frame f=new Frame();
f.setVisible(true);
for(int i=0 ; i<1000; i++){
int x=(new Double(Math.random()
*(Toolkit.getDefaultToolkit().getScreenSize().width
-300))).intValue();
int y=(new Double(Math.random()
*(Toolkit.getDefaultToolkit().getScreenSize().height
-400))).intValue();
f.setLocation(x,y);
if (f.getLocation().x!=x || f.getLocation().y!=y)
err++;
}
System.out.println(" "+err+" errors");
System.exit(0);
}
}
Test output:
=============
VM option '+ZombieALot'
VM option '+UseOnStackReplacement'
VM option 'OnStackReplaceThreshold=3'
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Fatal: bad pc for a nmethod found
#
# Error ID: /BUILD_AREA/hotspot1.3.1/build/linux/../../src/share/vm/code/nmethod.cpp, 954
#
# Problematic Thread: prio=1 tid=0x805f880 nid=0x59d7 runnable
#
Current thread is 0x400
Dumping core ...
Abort
Specific Machine Info:
=====================
Hostname: linux-13
======================================================================