harmony-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=541077
Log:
Applied HARMONY-3947 [drlvm][object] Known/proven race conditions markup at vm_arrays.cpp":414
at increment_array_copy_counter()


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp?view=diff&rev=541077&r1=541076&r2=541077
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp Wed May 23 14:07:52 2007
@@ -34,7 +34,7 @@
 #include "open/vm_util.h"
 
 #include "vm_stats.h"
-
+#include "port_threadunsafe.h"
 
 /////////////////////////////////////////////////////////////
 // begin vector access functions
@@ -411,8 +411,11 @@
 #ifdef VM_STATS
 static void increment_array_copy_counter(uint64 &counter)
 {
+    UNSAFE_REGION_START
     counter ++;
+    UNSAFE_REGION_END
 }
+
 #endif // VM_STATS
 
 // This implementation may be Java specific



Mime
View raw message