harmony-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=544509
Log:
Applied HARMONY-3979 [drlvm][classloader][tc] Known/proven race conditions markup at "string_pool.cpp":319


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

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/String_Pool.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/String_Pool.cpp?view=diff&rev=544509&r1=544508&r2=544509
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/String_Pool.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/String_Pool.cpp Tue Jun  5 08:09:47
2007
@@ -39,6 +39,7 @@
 #include "atomics.h"
 #include "vm_strings.h"
 #include "vm_stats.h"
+#include "port_threadunsafe.h"
 
 #define LOG_DOMIAN "vm.strings"
 #include "cxxlog.h"
@@ -316,7 +317,9 @@
         MemoryWriteBarrier();
         local_current_interned->free_slot++;
     } else {
+        UNSAFE_REGION_START
         current_interned->free_slot++;
+        UNSAFE_REGION_END
     }
 }
 



Mime
View raw message