You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2007/05/23 23:07:53 UTC
svn commit: r541077 -
/harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp
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