harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r541078 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/method_lookup.cpp
Date Wed, 23 May 2007 21:08:53 GMT
Author: gshimansky
Date: Wed May 23 14:08:53 2007
New Revision: 541078

URL: http://svn.apache.org/viewvc?view=rev&rev=541078
Log:
Applied HARMONY-3949 [drlvm][class_support] Known/proven race conditions markup at "method_lookup.cpp":234
at CodeChunkInfo * Method_Lookup_Table::find(void *,bool)


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/method_lookup.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/method_lookup.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/method_lookup.cpp?view=diff&rev=541078&r1=541077&r2=541078
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/method_lookup.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/method_lookup.cpp Wed May 23
14:08:53 2007
@@ -33,7 +33,7 @@
 #include "class_member.h"
 
 #include "method_lookup.h"
-
+#include "port_threadunsafe.h"
 
 #define EIP_CACHE_SIZE 1024
 #define EIP_ALIGNMENT     4
@@ -231,7 +231,9 @@
         void *guess_end   = ((char *)guess->get_code_block_addr()) + guess->get_code_block_size();
         if ((addr >= guess_start) && (addr < guess_end)) {
 #ifdef VM_STATS
+            UNSAFE_REGION_START
             VM_Statistics::get_vm_stats().num_method_lookup_cache_hit++;
+            UNSAFE_REGION_END
 #endif //VM_STATS
             return guess;
         }



Mime
View raw message