-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
P4
-
None
-
Affects Version/s: 1.2.0
-
Component/s: vm-legacy
-
x86
-
windows_nt
Name: diC59631 Date: 01/11/99
/*
Compile this source code and run it as follows:
15:16 E:\projects\java\com\sixlegs\text>javac Hello.java
15:16 E:\projects\java\com\sixlegs\text>java Hello
A nonfatal internal JIT (3.00.078(x)) error 'GetRegisterA' has occurred in :
'Hello.chooseRunSize ()V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
*/
class Hello {
private int runSize;
private int packSize = 8;
private int[][] array = {{1}};
public static void main (String[] args) {
new Hello().chooseRunSize();
}
private int bitsNeeded (int num_vals) {
return (int)Math.ceil(Math.log(num_vals) / Math.log(2));
}
private void chooseRunSize () {
int w = array.length;
int h = array[0].length;
int max_run = bitsNeeded(w * h);
int[] buckets = new int[max_run + 1];
int run_len = 0;
int old_v = array[0][0];
for (int i = 0; i < w; i++) {
for (int j = 0; j < h; j++) {
int v = array[i][j];
if (v != old_v) {
buckets[bitsNeeded(run_len)]++;
run_len = 0;
}
run_len++;
old_v = v;
}
}
buckets[bitsNeeded(run_len)]++;
int last_estimate = Integer.MAX_VALUE;
for (runSize = 1; runSize <= max_run; runSize++) {
int accum = 0;
for (int i = 1; i <= max_run; i++)
accum += buckets[i] * (1 << Math.max(i - runSize, 0));
int bit_estimate = accum * (runSize + packSize);
if (bit_estimate > last_estimate) break;
last_estimate = bit_estimate;
}
}
}
(Review ID: 48960)
======================================================================
Name: skT88420 Date: 07/19/99
The problem happened just one time.
======================================================================
Name: skT88420 Date: 09/15/99
I have received this request from java VM to report a bug:
J:\borsotti\lbj>java -cp .. lbj.CliTest
A nonfatal internal JIT (3.00.078(x)) error 'GetRegisterA' has occurred in :
'lbj/Cli.start (Llbj/Cli$Command;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
(Review ID: 95273)
======================================================================