harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen Yang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5159) [drlvm][gc] stress tests org.apache.harmony.test.stress.gc.frag.Fragmentation hung
Date Fri, 30 Nov 2007 08:45:43 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547047
] 

Chen Yang commented on HARMONY-5159:
------------------------------------

I have successfully reproduced the OutOfMemoryError issue on both Windows and Linux. But no
hung.
The source of the OutOfMemoryError is the EMThreadSupport, in its onTimeout routine, it tries
to allocate some memory in Java routine, but the allocation failed, and the exception is not
captured by the EMThreadSupport, thus it will be captured by the default UncaughtException
handler. 

Here is the trace of the outofmemory occured under Windows:
 	harmonyvm.dll!exn_raise_object_internal(_jobject * exc_object=0x12926fb8)  Line 391	C++
 	harmonyvm.dll!string_create(unsigned int unicode_length=0x0000000a, bool eight_bit=true,
ManagedObject * * str=0x1309f3c0, StringBuffer * buf=0x1309f3c4)  Line 259 + 0x11	C++
 	harmonyvm.dll!string_create_from_utf8(const char * buf=0x128551a4, unsigned int length=0x0000000a)
 Line 304	C++
 	harmonyvm.dll!String_Pool::intern(String * str=0x1285519c)  Line 328 + 0x14	C++
 	harmonyvm.dll!vm_instantiate_cp_string_resolved(String * str=0x1285519c)  Line 568	C++
 	harmonyvm.dll!class_get_const_string_intern_addr(Class * cl=0x1289bb00, unsigned int index=0x12ad58e0)
 Line 817 + 0x6	C++
 	jitrino.dll!Jitrino::CompilationInterface::loadStringObject(Jitrino::MethodDesc * enclosingMethodDesc=0x12c6ee40,
unsigned int stringToken=0x000000e7)  Line 551 + 0xc	C++
 	jitrino.dll!Jitrino::Ia32::IRManager::resolveRuntimeInfo(Jitrino::Ia32::Opnd * opnd=0x12cb60f4)
 Line 2030	C++
 	jitrino.dll!Jitrino::Ia32::IRManager::resolveRuntimeInfo()  Line 1980 + 0xe	C++
 	jitrino.dll!Jitrino::Ia32::CodeEmitter::runImpl()  Line 299	C++
 	jitrino.dll!Jitrino::Ia32::SessionAction::run()  Line 2328	C++
 	jitrino.dll!Jitrino::runPipeline(Jitrino::CompilationContext * c=0x1309f520)  Line 225	C++
 	jitrino.dll!Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext * cc=0x1309f520)
 Line 258 + 0x6	C++
 	jitrino.dll!JIT_compile_method_with_params(void * jit=0x01e11000, void * compilation=0x1309f7c0,
Method * method_handle=0x12b07ad0, OpenMethodExecutionParams compilation_params={...})  Line
260 + 0xa	C++
 	harmonyvm.dll!Dll_JIT::compile_method_with_params(void * compilation=0x1309f7c0, Method
* method=0x12b07ad0, OpenMethodExecutionParams flags={...})  Line 62 + 0x12	C++
 	harmonyvm.dll!compile_do_compilation_jit(Method * method=0x12b07ad0, JIT * jit=0x01e11000)
 Line 656 + 0x16	C++
 	harmonyvm.dll!vm_compile_method(void * jit=0x01e11000, Method * method=0x12b07ad0)  Line
2622 + 0xf	C++
>	em.dll!DrlEMImpl::methodProfileIsReady(MethodProfile * mp=0x12f225a8)  Line 792 + 0xe
C++
 	em.dll!EBProfileCollector::onTimeout()  Line 189 + 0x9	C++
 	em.dll!DrlEMImpl::tbsTimeout()  Line 838	C++
 	harmonyvm.dll!Java_java_lang_EMThreadSupport_onTimeout(JNIEnv_External * jenv=0x006cd1b2,
_jobject * cls=0x12ad6a78)  Line 50	C++
 	harmonyvm.dll!free(void * pBlock=0x128ef730)  Line 103 + 0x5	C
 	harmonyvm.dll!log4cxx::helpers::ObjectImpl::releaseRef()  Line 40 + 0xc	C++
 	harmonyvm.dll!is_info_enabled(const char * category=0x1309fe7c)  Line 246 + 0x47	C++
 	harmonyvm.dll!compile_me(Method * method=0x1309fe7c)  Line 819	C++
 	harmonyvm.dll!free(void * pBlock=0x12ad27f0)  Line 103 + 0x5	C
 	harmonyvm.dll!GcFrame::~GcFrame()  Line 99 + 0x6	C++
 	harmonyvm.dll!compile_me(Method * method=0x0078f788)  Line 819	C++
 	ntdll.dll!7c91056d() 	
 	harmonyvm.dll!free(void * pBlock=0x12ad27f0)  Line 103 + 0x5	C
 	harmonyvm.dll!GcFrame::~GcFrame()  Line 99 + 0x6	C++
 	harmonyvm.dll!compile_me(Method * method=0x1309fe7c)  Line 819	C++
 	harmonyvm.dll!free(void * pBlock=0x12ad6318)  Line 103 + 0x5	C
 	harmonyvm.dll!GcFrame::~GcFrame()  Line 99 + 0x6	C++
 	harmonyvm.dll!compile_me(Method * method=0x1309fe7c)  Line 819	C++
 	harmonyvm.dll!JIT_execute_method_default(void * jit=0x00000000, _jmethodID * methodID=0x128f4ae0,
jvalue * return_value=0x1309ff2c, jvalue * args=0x1309fef8)  Line 248	C++
 	em.dll!DrlEMImpl::executeMethod(_jmethodID * meth=0x128f4ae0, jvalue * return_value=0x1309ff2c,
jvalue * args=0x1309fef8)  Line 520 + 0x14	C++
 	em.dll!ExecuteMethod(_jmethodID * meth=0x128f4ae0, jvalue * return_value=0x1309ff2c, jvalue
* args=0x1309fef8)  Line 44	C++
 	harmonyvm.dll!vm_execute_java_method_array(_jmethodID * method=0x128f4ae0, jvalue * result=0x1309ff2c,
jvalue * args=0x1309fef8)  Line 62 + 0x19	C++
 	harmonyvm.dll!call_method_no_ref_result(JNIEnv_External * jni_env=0x127ea758, _jobject *
obj=0x01db2000, _jmethodID * methodID=0x1213a2c0, jvalue * args=0x00000000, jvalue * result=0x1309ff2c,
int non_virtual=0x12926fb8)  Line 187 + 0xe	C++
 	harmonyvm.dll!CallVoidMethodA(JNIEnv_External * jni_env=0x127ea758, _jobject * obj=0x12ad6278,
_jmethodID * methodID=0x128f4ae0, jvalue * args=0x00000000)  Line 228 + 0x20	C++
 	harmonyvm.dll!jthread_wrapper_start_proc(void * arg=0x127ea758)  Line 166	C++
 	hythr.dll!_threadstartex(void * ptd=0x00424060)  Line 241 + 0x6	C
 	kernel32.dll!7c80b683() 	

It may cause the execution longer than normally.

> [drlvm][gc]  stress tests org.apache.harmony.test.stress.gc.frag.Fragmentation hung
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-5159
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5159
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux_x86,Windows x86
>            Reporter: Ilya Leviev
>            Assignee: Xiao-Feng Li
>
> stress tests org.apache.harmony.test.stress.gc.frag.Fragmentation hung
> Linux_x86:
> r595311
> stress.org.apache.harmony.test.stress.gc.frag.Fragmentation.FragmentationTest1024
> http://people.apache.org/~smishura/r595311/Linux_x86/stress/stress/org/apache/harmony/test/stress/gc/frag/Fragmentation/77_FragmentationTest1024-out.txt
> stress.org.apache.harmony.test.stress.gc.frag.FragmentationFinalizer.FragmentationFinalizerTest1024
> http://people.apache.org/~smishura/r595311/Linux_x86/stress/stress/org/apache/harmony/test/stress/gc/frag/FragmentationFinalizer/82_FragmentationFinalizerTest1024-out.txt
> stress.org.apache.harmony.test.stress.gc.frag.FragmentationReference.FragmentationSoftRefTest1024
> http://people.apache.org/~smishura/r595311/Linux_x86/stress/stress/org/apache/harmony/test/stress/gc/frag/FragmentationReference/91_FragmentationSoftRefTest1024-out.txt
> r597436
> stress.org.apache.harmony.test.stress.gc.frag.FragmentationFinalizer.FragmentationFinalizerTest16_1024
> Windows x86
> r597436
> stress.org.apache.harmony.test.stress.gc.frag.FragmentationReference.FragmentationSoftRefTest
> http://people.apache.org/~smishura/r597436/Windows_x86/stress/stress/org/apache/harmony/test/stress/gc/frag/FragmentationReference/90_FragmentationSoftRefTest-out.txt

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message