OSDN Git Service

ART: Delete unnecessary ScopedObjectAccess
authorAndreas Gampe <agampe@google.com>
Fri, 2 Dec 2016 03:32:26 +0000 (19:32 -0800)
committerAndreas Gampe <agampe@google.com>
Fri, 2 Dec 2016 04:05:07 +0000 (20:05 -0800)
This isn't protecting or serializing anything. Reduces
dex2oatd compile time.

Test: m test-art-host
Change-Id: I8e6d1579578740b526070ba784b81bd0590e84b1

compiler/optimizing/graph_checker.cc

index c8cba20..188ee3a 100644 (file)
@@ -23,7 +23,6 @@
 #include "base/arena_containers.h"
 #include "base/bit_vector-inl.h"
 #include "base/stringprintf.h"
-#include "handle_scope-inl.h"
 
 namespace art {
 
@@ -448,7 +447,6 @@ void GraphChecker::VisitInstruction(HInstruction* instruction) {
 
   // Ensure that reference type instructions have reference type info.
   if (instruction->GetType() == Primitive::kPrimNot) {
-    ScopedObjectAccess soa(Thread::Current());
     if (!instruction->GetReferenceTypeInfo().IsValid()) {
       AddError(StringPrintf("Reference type instruction %s:%d does not have "
                             "valid reference type information.",
@@ -1011,7 +1009,6 @@ void GraphChecker::VisitConstant(HConstant* instruction) {
 void GraphChecker::VisitBoundType(HBoundType* instruction) {
   VisitInstruction(instruction);
 
-  ScopedObjectAccess soa(Thread::Current());
   if (!instruction->GetUpperBound().IsValid()) {
     AddError(StringPrintf(
         "%s %d does not have a valid upper bound RTI.",