From 3bdb873122964da7937eb070cbcf2ef638a8e459 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Thu, 22 May 2014 22:06:51 +0000 Subject: Revert "Fix an outstanding compaction bug in interpreter." This reverts commit e09ae0920be57760fb390b6944bce420fa0b5582. Change-Id: I48036306130d5ccfec683d0dc3e9a642a02ee9c1 --- compiler/driver/compiler_driver_test.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'compiler/driver/compiler_driver_test.cc') diff --git a/compiler/driver/compiler_driver_test.cc b/compiler/driver/compiler_driver_test.cc index 964dfeb5b1..4efd27d476 100644 --- a/compiler/driver/compiler_driver_test.cc +++ b/compiler/driver/compiler_driver_test.cc @@ -152,9 +152,10 @@ TEST_F(CompilerDriverTest, AbstractMethodErrorStub) { jobject class_loader; { ScopedObjectAccess soa(Thread::Current()); - CompileVirtualMethod(NullHandle(), "java.lang.Class", "isFinalizable", - "()Z"); - CompileDirectMethod(NullHandle(), "java.lang.Object", "", "()V"); + StackHandleScope<1> hs(soa.Self()); + auto null_loader(hs.NewHandle(nullptr)); + CompileVirtualMethod(null_loader, "java.lang.Class", "isFinalizable", "()Z"); + CompileDirectMethod(null_loader, "java.lang.Object", "", "()V"); class_loader = LoadDex("AbstractMethod"); } ASSERT_TRUE(class_loader != NULL); -- cgit v1.2.3-59-g8ed1b