Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900374

JCOV: "out of memory" error when a constant pool entry is larger than 32767

XMLWordPrintable

    • hopper
    • generic
    • generic
    • Not verified



        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***
        ======================================================================

              afedorch Alexey Fedorchenko (Inactive)
              klooney Kevin Looney (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: