Removing remaining compiled stubs from image.
Abstract method error stub and jni dlsym lookup stubs are gone.
After this change, the image no longer needs to be executable.
Change-Id: Ic75d72bf7e76e3b8ecc596e82af68ab592dde15e
diff --git a/src/common_test.h b/src/common_test.h
index 05b0e05..6876274 100644
--- a/src/common_test.h
+++ b/src/common_test.h
@@ -234,8 +234,7 @@
} else {
const void* method_code;
if (method->IsAbstract()) {
- MakeExecutable(runtime_->GetAbstractMethodErrorStubArray());
- method_code = runtime_->GetAbstractMethodErrorStubArray()->GetData();
+ method_code = GetAbstractMethodErrorStub();
} else {
// No code? You must mean to go into the interpreter.
method_code = GetInterpreterEntryPoint();
@@ -353,8 +352,6 @@
CompilerBackend compiler_backend = kQuick;
#endif
- runtime_->SetJniDlsymLookupStub(CompilerDriver::CreateJniDlsymLookupStub(instruction_set));
- runtime_->SetAbstractMethodErrorStubArray(CompilerDriver::CreateAbstractMethodErrorStub(instruction_set));
if (!runtime_->HasResolutionMethod()) {
runtime_->SetResolutionMethod(runtime_->CreateResolutionMethod());
}
@@ -487,8 +484,6 @@
CHECK(method != NULL);
compiler_driver_->CompileOne(method);
MakeExecutable(method);
-
- MakeExecutable(runtime_->GetJniDlsymLookupStub());
}
void CompileDirectMethod(mirror::ClassLoader* class_loader,