Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8252786

SortMethodsTest.java failed with "class loading needs quadratic time with regard to the number of class methods"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u261, 8u381
    • hotspot

      Hello from class ManyMethodsClass with 7 methods (loaded and resloved in 2374069ns)
      Hello from class ManyMethodsClass with 61 methods (loaded and resloved in 2649252ns)
      Hello from class ManyMethodsClass with 601 methods (loaded and resloved in 5592757ns)
      Hello from class ManyMethodsClass with 6001 methods (loaded and resloved in 33244419ns)
      Hello from class ManyMethodsClass with 60001 methods (loaded and resloved in 3618412290ns)
      10 x more methods requires 11 x more time
      10 x more methods requires 9 x more time
      10 x more methods requires 117 x more time
      ----------System.err:(12/721)----------
      java.lang.RuntimeException: ATTENTION: it seems that class loading needs quadratic time with regard to the number of class methods!!!
      at SortMethodsTest.main(SortMethodsTest.java:124)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.lang.Thread.run(Thread.java:748)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: ATTENTION: it seems that class loading needs quadratic time with regard to the number of class methods!!!


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: ATTENTION: it seems that class loading needs quadratic time with regard to the number of class methods!!!

            fmatte Fairoz Matte
            fmatte Fairoz Matte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: