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

java.lang.OutOfMemoryError on WinNT with JDK1.2S build from concurrency awt test

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0, 1.2.0
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      1.2beta
    • Introduced In Version:
    • CPU:
      x86, sparc
    • OS:
      generic, solaris_2.5.1

      Description

      Steps:
      ----
      1. Run concurrency awt concurrency awt tests with following command on WinNT machine.
      java concurrency.Tool -testdir tests/awt -thread 15 -wait 100000 -garbage -single.

      I have attached the awttests.zip file for the tests.
      Produces following error:
      java.lang.OutOfMemoryError:^M
              at java.lang.StringBuffer.expandCapacity(StringBuffer.java:184)^M
              at java.lang.StringBuffer.append(StringBuffer.java:341)^M
              at java.lang.StringBuffer.append(StringBuffer.java:319)^M
              at concurrency.tools.TestCaseEnumerator.AdvanceFromClasses(TestCaseEnumerator.^M
              at concurrency.tools.TestCaseEnumerator.hasMoreElements(TestCaseEnumerator.jav^M
              at concurrency.tools.ConcurrencyEngine.run(ConcurrencyEngine.java:61

      /////////////////////////////////////////////////////////////////////////////

      When I run this test on my machine, I got different result. See below for
      stack dump.

      jni_GetObjectClass(const JNINativeInterface_ * * 0x04f8b558, _jobject * 0x004d6160) line 1401
      JNU_CallMethodByNameV(const JNINativeInterface_ * * 0x04f8b503, unsigned char * 0x004d6160, _jobject * 0x00000000, char * 0x059a0d74, char * 0x067400ec, char * 0x067400fc) line 260
      JNU_CallMethodByName(const JNINativeInterface_ * * 0x066d3e95, unsigned char * 0x004d6160, _jobject * 0x00000000, char * 0x059a0d74, char * 0x067400ec) line 233
      AwtFrame::AwtNativeActivationEvent::Dispatch(AwtFrame::AwtNativeActivationEvent * const 0x01b0ef10) line 49 + 25 bytes
      Java_sun_awt_windows_WActiveEvent_dispatchImpl(JNIEnv_ * 0x1002cd66, _jobject * 0x004d6160, __int64 428879972389281884) line 77
      _sysInvokeNative() line 163
      invokeJNINativeMethod(Hjava_lang_Object * 0x10033ff5, methodblock * 0x01b0f3f0, int 5262312, execenv * 0x00000003) line 458 + 31 bytes
      _ExecuteJava() line 14243

      In the debug, I saw the immutable member m_frame of class AwtFrame::AwtNativeActivationEvent got corrupted. The memory leakage is also
      visible. After running the test for half hour, the memory usage run from 11MB
      to 30MB.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hongzh Hong Zhang
              Reporter:
              vvenkatrsunw Vanitha Venkatraman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: