Date: Fri, 29 Sep 2000 13:13:20 -0700 (PDT)
From: Joshua Bloch <###@###.###>
Reply-To: Joshua Bloch <###@###.###>
Subject: VM Crash
To: ###@###.###
John,
I'm afraid I crashed the latest VM you sent me with a little program, which
I'm attaching. To run: java Test7 10 100
Here's the output that I got.
Indexing
#
# HotSpot Virtual Machine Error, Unexpected Signal 11
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F534F4C415249530E435050079D 01
#
# Problematic Thread: prio=5 tid=0x9c218 nid=0xb runnable
#
Abort (core dumped)
Regards,
Josh
import java.util.*;
public class Test7 {
static public void main(String [] args) {
int nRuns = Integer.parseInt(args[0]);
int N = Integer.parseInt(args[1]);
List lst = new LinkedList(Collections.nCopies(N, "foofy"));
int n = 100000/N;
n = Math.max(n, 1);
System.out.println("Indexing");
for (int i=0; i<nRuns; i++) {
long startTime = System.currentTimeMillis();
for (int k=0; k<n; k++)
fill1(lst, "goofy");
long endTime = System.currentTimeMillis();
System.out.println(((float)(endTime-startTime))/(n));
}
}
public static void fill1(List list, Object obj) {
for (int i=0, n=list.size(); i<n; i++)
list.set(i, obj);
}
public static void fill2(List list, Object obj) {
for (ListIterator i = list.listIterator(); i.hasNext(); ) {
i.next();
i.set(obj);
}
}
}
Date: Fri, 29 Sep 2000 14:23:43 -0700 (PDT)
From: Joshua Bloch <###@###.###>
Subject: Danger Will Robinson!
John,
That little test program that I sent you seg faults the Released 1.3 Solaris
Server VM!
Josh
From: Joshua Bloch <###@###.###>
Reply-To: Joshua Bloch <###@###.###>
Subject: VM Crash
To: ###@###.###
John,
I'm afraid I crashed the latest VM you sent me with a little program, which
I'm attaching. To run: java Test7 10 100
Here's the output that I got.
Indexing
#
# HotSpot Virtual Machine Error, Unexpected Signal 11
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F534F4C415249530E435050079D 01
#
# Problematic Thread: prio=5 tid=0x9c218 nid=0xb runnable
#
Abort (core dumped)
Regards,
Josh
import java.util.*;
public class Test7 {
static public void main(String [] args) {
int nRuns = Integer.parseInt(args[0]);
int N = Integer.parseInt(args[1]);
List lst = new LinkedList(Collections.nCopies(N, "foofy"));
int n = 100000/N;
n = Math.max(n, 1);
System.out.println("Indexing");
for (int i=0; i<nRuns; i++) {
long startTime = System.currentTimeMillis();
for (int k=0; k<n; k++)
fill1(lst, "goofy");
long endTime = System.currentTimeMillis();
System.out.println(((float)(endTime-startTime))/(n));
}
}
public static void fill1(List list, Object obj) {
for (int i=0, n=list.size(); i<n; i++)
list.set(i, obj);
}
public static void fill2(List list, Object obj) {
for (ListIterator i = list.listIterator(); i.hasNext(); ) {
i.next();
i.set(obj);
}
}
}
Date: Fri, 29 Sep 2000 14:23:43 -0700 (PDT)
From: Joshua Bloch <###@###.###>
Subject: Danger Will Robinson!
John,
That little test program that I sent you seg faults the Released 1.3 Solaris
Server VM!
Josh