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.
----
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.
- duplicates
-
JDK-4131534 AWTMemLeakTest tries to access illegal mem location.
- Closed
- relates to
-
JDK-4129709 AWT 1.2 crashes while running concurrency AWT test
- Closed