harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r540767 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/mem_alloc.cpp
Date Tue, 22 May 2007 21:53:27 GMT
Author: gshimansky
Date: Tue May 22 14:53:27 2007
New Revision: 540767

URL: http://svn.apache.org/viewvc?view=rev&rev=540767
Log:
Applied HARMONY-3857 [drlvm][util] Known/proven race conditions markup at \vm\vmcore\src\util\mem_alloc.cpp
(L:231)


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

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/mem_alloc.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/mem_alloc.cpp?view=diff&rev=540767&r1=540766&r2=540767
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/mem_alloc.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/mem_alloc.cpp Tue May 22 14:53:27 2007
@@ -35,6 +35,7 @@
 #include "mem_alloc.h"
 #include "vm_stats.h"
 #include "port_malloc.h"
+#include "port_threadunsafe.h"
 
 ////////////////////////////////////////////////////////////
 // allocation memory for code for stubs
@@ -228,7 +229,9 @@
     _unlock();
  
  #ifdef VM_STATS
+    UNSAFE_REGION_START
     VM_Statistics::get_vm_stats().total_memory_used += size;
+    UNSAFE_REGION_END
 #endif
  
     return p;



Mime
View raw message