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:05:51 UTC
svn commit: r541075 -
/harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp
Author: gshimansky
Date: Wed May 23 14:05:51 2007
New Revision: 541075
URL: http://svn.apache.org/viewvc?view=rev&rev=541075
Log:
Applied HARMONY-3932 [drlvm][class_support] Known/proven race conditions markup at vm\vmcore\src\class_support\Class.cpp at is_instanceof()
Modified:
harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp
Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp?view=diff&rev=541075&r1=541074&r2=541075
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class.cpp Wed May 23 14:05:51 2007
@@ -39,6 +39,7 @@
#include "type.h"
#include "cci.h"
#include "interpreter.h"
+#include "port_threadunsafe.h"
#include "inline_info.h"
@@ -192,6 +193,7 @@
assert(!is_interface());
#ifdef VM_STATS
+ UNSAFE_REGION_START
VM_Statistics::get_vm_stats().num_type_checks++;
if(this == clss)
VM_Statistics::get_vm_stats().num_type_checks_equal_type++;
@@ -203,6 +205,7 @@
VM_Statistics::get_vm_stats().num_type_checks_super_is_interface ++;
else if(clss->m_depth >= vm_max_fast_instanceof_depth())
VM_Statistics::get_vm_stats().num_type_checks_super_is_too_deep++;
+ UNSAFE_REGION_END
#endif // VM_STATS
if(this == clss) return true;