harmony-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=541076
Log:
Applied HARMONY-3945 [drlvm][util] Known/proven race conditions markup at "vm_strings.cpp":604


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp?view=diff&rev=541076&r1=541075&r2=541076
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp Wed May 23 14:06:53 2007
@@ -30,6 +30,7 @@
 #include "vm_stats.h"
 #include "exceptions.h"
 #include "vm_arrays.h"
+#include "port_threadunsafe.h"
 
 /////////////////////////////////////////////////////////////
 // begin utf8 support
@@ -601,7 +602,9 @@
 {
     ASSERT_THROW_AREA;
 #ifdef VM_STATS
+    UNSAFE_REGION_START
     VM_Statistics::get_vm_stats().num_instantiate_cp_string_slow++;
+    UNSAFE_REGION_END
 #endif
 
     Java_java_lang_String* result;



Mime
View raw message