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

Memory leak in Java_java_lang_ClassLoader_defineClass0()

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b19

      Backports

        Description

        It is very obvious.

        iff --git a/src/java.base/share/native/libjava/ClassLoader.c b/src/java.base/share/native/libjava/ClassLoader.c
        index 31b3d814337..021a5a191eb 100644
        --- a/src/java.base/share/native/libjava/ClassLoader.c
        +++ b/src/java.base/share/native/libjava/ClassLoader.c
        @@ -260,7 +260,7 @@ Java_java_lang_ClassLoader_defineClass0(JNIEnv *env,
                 utfName = NULL;
             }
         
        - return JVM_LookupDefineClass(env, lookup, utfName, body, length, pd, initialize, flags, classData);
        + result = JVM_LookupDefineClass(env, lookup, utfName, body, length, pd, initialize, flags, classData);
         
          free_body:
             free(body);

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                zgu Zhengyu Gu
                Reporter:
                zgu Zhengyu Gu
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: