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

memory leak in many jni calls (NewString etc.)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0u2
    • Component/s: deploy
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b04
    • CPU:
      sparc
    • OS:
      solaris_10

      Backports

        Description

        In deploy/src/plugin/solaris/nscore/remotejni.cpp, there are several places where call malloc but don't call free. The affected methods are:

        jni_CallStaticVoidMethodV
        DEFINE_CAPTURESCALARARRAYELEMENTS
        DEFINE_SETSCALARARRAYELEMENTS
        jni_NewString
        jni_NewStringUTF
        jni_CSecurityContextImplies

        When doing liveconnect call, mozilla will call jni_NewString to convert js string to java string, sometimes, the js string is very large, it will cause serious mozilla memory growth.

        This problem also exists in 1.4.2.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mleisunw Mike Lei (Inactive)
                Reporter:
                duke J. Duke (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: