harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r541559 - /harmony/enhanced/drlvm/trunk/vm/em/src/DrlEMImpl.cpp
Date Fri, 25 May 2007 06:08:07 GMT
Author: varlax
Date: Thu May 24 23:08:05 2007
New Revision: 541559

URL: http://svn.apache.org/viewvc?view=rev&rev=541559
Log:
Applied HARMONY-3714 [drlvm][em] Known/proven race condition markup 

Modified:
    harmony/enhanced/drlvm/trunk/vm/em/src/DrlEMImpl.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/em/src/DrlEMImpl.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/em/src/DrlEMImpl.cpp?view=diff&rev=541559&r1=541558&r2=541559
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/em/src/DrlEMImpl.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/em/src/DrlEMImpl.cpp Thu May 24 23:08:05 2007
@@ -37,7 +37,7 @@
 #include <algorithm>
 #include <sstream>
 #include <fstream>
-
+#include "port_threadunsafe.h"
 
 #define LOG_DOMAIN "em"
 
@@ -512,8 +512,13 @@
 JIT_Result DrlEMImpl::compileMethod(Method_Handle mh) {
     //initial method compilation. Select chain to use.
 
+    UNSAFE_REGION_START
+    // May affect logging statistics, also used in debug-intended method filter
+    // Does not affect normal execution
     nMethodsCompiled++;
-    //these vars used for logging
+    UNSAFE_REGION_END
+
+    //these vars are used for logging
     const char* methodName = NULL;
     const char* className = NULL;
     const char* signature = NULL;



Mime
View raw message