Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
CODETOOLS-7900678 | jcov_1.4 | Alexey Fedorchenko | P4 | Closed | Fixed | rc1 |
Name: kbR10066 Date: 10/11/2001
When Jcov agent loads a class containing large constant pool entry whose
size does not fit in 15 bits (> 32767), "out of memory" error occurs.
Example of such class is sun.io.CharToByteEUC_TW. The bug occurs
with JDK1.4.0 builds 78 through 83.
To reproduce :
1. Compile a simple program:
> javac a.java
--- a.java ---
public class a {
public static void main(String[] args) {
try {
Class c = Class.forName("sun.io.CharToByteEUC_TW");
} catch (Throwable e) {
}
}
}
--- end of a.java ---
2. Run this class with Jcov enabled:
> java -cp . -Xrunjcov:type=m a
The output will be:
*** JCOV error : ***out of memory***
======================================================================
- backported by
-
CODETOOLS-7900678 JCOV: "out of memory" error when a constant pool entry is larger than 32767
- Closed