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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: jcov_1.4
    • Fix Version/s: jcov_1.1
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      hopper
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description



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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: