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"

    Details

    • Type: Bug
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8u261
    • Fix Version/s: None
    • Component/s: hotspot

      Description

      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!!!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fmatte Fairoz Matte
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: