harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r544510 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp
Date Tue, 05 Jun 2007 15:10:41 GMT
Author: gshimansky
Date: Tue Jun  5 08:10:41 2007
New Revision: 544510

URL: http://svn.apache.org/viewvc?view=rev&rev=544510
Log:
Applied HARMONY-4015 [drlvm][classloader][tc] Known/proven race conditions markup at "class.cpp"
at func helper_get_interface_vtable() (499-514)


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

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp?view=diff&rev=544510&r1=544509&r2=544510
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp Tue Jun  5 08:10:41
2007
@@ -496,6 +496,7 @@
     Intfc_Table* intfTable  = vt->intfc_table;
     unsigned num_intfc = intfTable->n_entries;
 #ifdef VM_STATS
+    UNSAFE_REGION_START
     VM_Statistics::get_vm_stats().num_invokeinterface_calls++;
     switch(num_intfc) {
     case 1:  VM_Statistics::get_vm_stats().num_invokeinterface_calls_size_1++;    break;
@@ -504,12 +505,14 @@
     }
     if(num_intfc > VM_Statistics::get_vm_stats().invokeinterface_calls_size_max)
         VM_Statistics::get_vm_stats().invokeinterface_calls_size_max = num_intfc;
+    UNSAFE_REGION_END
 #endif
     for(unsigned i = 0; i < num_intfc; i++) {
         const Intfc_Table_Entry& intfEntry = intfTable->entry[i];
         Class* intfc = intfEntry.intfc_class;
         if(intfc == iid) {
 #ifdef VM_STATS
+            UNSAFE_REGION_START
             switch(i) {
             case 0:  VM_Statistics::get_vm_stats().num_invokeinterface_calls_searched_1++;
   break;
             case 1:  VM_Statistics::get_vm_stats().num_invokeinterface_calls_searched_2++;
   break;
@@ -517,6 +520,7 @@
             }
             if(i > VM_Statistics::get_vm_stats().invokeinterface_calls_searched_max)
                 VM_Statistics::get_vm_stats().invokeinterface_calls_searched_max = i;
+            UNSAFE_REGION_END
 #endif
             unsigned char** table = intfEntry.table;
             return (void*)table;



Mime
View raw message