Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 9838 invoked from network); 21 Jun 2007 11:34:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jun 2007 11:34:48 -0000 Received: (qmail 14743 invoked by uid 500); 21 Jun 2007 11:34:52 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 14650 invoked by uid 500); 21 Jun 2007 11:34:52 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 14637 invoked by uid 99); 21 Jun 2007 11:34:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2007 04:34:52 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2007 04:34:47 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DF924714191 for ; Thu, 21 Jun 2007 04:34:26 -0700 (PDT) Message-ID: <8597767.1182425666913.JavaMail.jira@brutus> Date: Thu, 21 Jun 2007 04:34:26 -0700 (PDT) From: "Ilya Leviev (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4260) [drlvm][classloader][tc] Race conditions at "java_type.cpp":(140-134) at load_type_desc() on reliability test ClassReflectionTest In-Reply-To: <26214765.1182425186523.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ilya Leviev updated HARMONY-4260: --------------------------------- Summary: [drlvm][classloader][tc] Race conditions at "java_type.cpp":(140-134) at load_type_desc() on reliability test ClassReflectionTest (was: [drlvm][classloader] Race conditions at "java_type.cpp":(140-134) at load_type_desc() on reliability test ClassReflectionTest) > [drlvm][classloader][tc] Race conditions at "java_type.cpp":(140-134) at load_type_desc() on reliability test ClassReflectionTest > --------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-4260 > URL: https://issues.apache.org/jira/browse/HARMONY-4260 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Ilya Leviev > Priority: Minor > Attachments: SourceViewscreenshot-1.jpg, SourceViewScreenshot-2.jpg > > > Race conditions at "java_type.cpp":(140-134) at load_type_desc() function while reliability test ClassReflectionTest execution > TC report on thread unsafe access that result in race condition that occur during concurrent execution of load_type_desc() function > if it low priority issue I will mark it as expected race condition. > 1) Write -> Write data-race Memory write at "java_type.cpp":140 conflicts with a prior memory write at "java_type.cpp":140 > 2) Write -> Write data-race Memory write at "java_type.cpp":134 conflicts with a prior memory write at "java_type.cpp":134 > 1) Write -> Write data-race Memory write at "java_type.cpp":140 conflicts with a prior memory write at "java_type.cpp":140 > Stack Trace: > Context > Function class_is_subtype "jit_runtime_support.cpp":3202 > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_disable "hythread_ext.h":427 > Function m2n_pop_local_handles "m2n_ia32.cpp":257 > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_enable "hythread_ext.h":376 > Function Java_java_lang_reflect_VMReflection_getMethodReturnType "java_lang_reflect_vmreflection.cpp":87 > Function descriptor_to_jclass "reflection.cpp":39 > Function type_info_get_class "c_interface.cpp":2070 > Function TypeDesc::load_type_desc "java_type.cpp":114 > Definition > Function Class::parse_fields "class_file_loader.cpp":2291 > Function Field::parse "class_file_loader.cpp":786 > Function Field::parse "class_file_loader.cpp":1113 > Function type_desc_create_from_java_descriptor "java_type.cpp":81 > Function TypeDesc::type_desc_create_vector "java_type.cpp":163 > Function operator new "newop.cpp":12 > Function malloc "dbgheap.c":139 > Function nh_malloc_dbg "dbgheap.c":260 > Function heap_alloc_dbg "dbgheap.c":397 > Function heap_alloc_base "malloc.c":211 > 1st Access > Function class_is_subtype "jit_runtime_support.cpp":3202 > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_disable "hythread_ext.h":427 > Function m2n_pop_local_handles "m2n_ia32.cpp":257 > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_enable "hythread_ext.h":376 > Function Java_java_lang_reflect_VMReflection_getMethodReturnType "java_lang_reflect_vmreflection.cpp":87 > Function descriptor_to_jclass "reflection.cpp":39 > Function type_info_get_class "c_interface.cpp":2070 > Function TypeDesc::load_type_desc "java_type.cpp":140 > "139" "" " if (!element_clss) return NULL;" > "140" "*" " clss = resolve_class_array_of_class1(env, element_clss);" > "141" "" " return clss;" > 2nd Access > Function class_is_subtype "jit_runtime_support.cpp":3202 > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_disable "hythread_ext.h":427 > Function m2n_pop_local_handles "m2n_ia32.cpp":257 > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_enable "hythread_ext.h":376 > Function Java_java_lang_reflect_VMReflection_getMethodReturnType "java_lang_reflect_vmreflection.cpp":87 > Function descriptor_to_jclass "reflection.cpp":39 > Function type_info_get_class "c_interface.cpp":2070 > Function TypeDesc::load_type_desc "java_type.cpp":140 > "139" "" " if (!element_clss) return NULL;" > "140" "*" " clss = resolve_class_array_of_class1(env, element_clss);" > "141" "" " return clss;" > See also Source View screenshots. > 2) Write -> Write data-race Memory write at "java_type.cpp":134 conflicts with a prior memory write at "java_type.cpp":134 > Context > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_disable "hythread_ext.h":427 > Function m2n_pop_local_handles "m2n_ia32.cpp":257 > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_enable "hythread_ext.h":376 > Function Java_java_lang_reflect_VMReflection_getMethodReturnType "java_lang_reflect_vmreflection.cpp":87 > Function descriptor_to_jclass "reflection.cpp":39 > Function type_info_get_class "c_interface.cpp":2070 > Function TypeDesc::load_type_desc "java_type.cpp":138 > Function TypeDesc::load_type_desc "java_type.cpp":114 > Definition > Function Class::parse_fields "class_file_loader.cpp":2291 > Function Field::parse "class_file_loader.cpp":786 > Function Field::parse "class_file_loader.cpp":1113 > Function type_desc_create_from_java_descriptor "java_type.cpp":77 > Function type_desc_create_from_java_descriptor "java_type.cpp":68 > Function operator new "newop.cpp":12 > Function malloc "dbgheap.c":139 > Function nh_malloc_dbg "dbgheap.c":260 > Function heap_alloc_dbg "dbgheap.c":397 > Function heap_alloc_base "malloc.c":211 > 1st Access > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_disable "hythread_ext.h":427 > Function m2n_pop_local_handles "m2n_ia32.cpp":257 > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_enable "hythread_ext.h":376 > Function Java_java_lang_reflect_VMReflection_getMethodReturnType "java_lang_reflect_vmreflection.cpp":87 > Function descriptor_to_jclass "reflection.cpp":39 > Function type_info_get_class "c_interface.cpp":2070 > Function TypeDesc::load_type_desc "java_type.cpp":138 > Function TypeDesc::load_type_desc "java_type.cpp":134 > "133" "" " //c = loader->LoadVerifyAndPrepareClass(env, name);" > "134" "*" " clss = loader->LoadClass(env, name);" > "135" "*" " return clss;" > 2nd Access > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_disable "hythread_ext.h":427 > Function m2n_pop_local_handles "m2n_ia32.cpp":257 > Function get_thread_ptr_stub "thread_manager.cpp":138 > Function hythread_suspend_enable "hythread_ext.h":376 > Function Java_java_lang_reflect_VMReflection_getMethodReturnType "java_lang_reflect_vmreflection.cpp":87 > Function descriptor_to_jclass "reflection.cpp":39 > Function type_info_get_class "c_interface.cpp":2070 > Function TypeDesc::load_type_desc "java_type.cpp":138 > Function TypeDesc::load_type_desc "java_type.cpp":134 > "133" "" " //c = loader->LoadVerifyAndPrepareClass(env, name);" > "134" "*" " clss = loader->LoadClass(env, name);" > "135" "*" " return clss;" > See also Source View screenshots. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.