OSDN Git Service

Fix art::ArchTest::FinalizeSetup not being called.
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>
Mon, 25 Jul 2016 16:31:06 +0000 (17:31 +0100)
committerPrzemyslaw Szczepaniak <pszczepaniak@google.com>
Mon, 1 Aug 2016 09:32:56 +0000 (09:32 +0000)
commita794c26a0909f5d882f236f12d7f5fd30a336f35
tree664866998697ba023710234b952e987da6e99f8f
parentbffecdbb50c42c775219dfbf32132fe6a9067762
Fix art::ArchTest::FinalizeSetup not being called.

CommonRuntimeTestImpl::SetUp() is calling FinalizeSetup. Since
CommonRuntimeTestImpl::FinalizeSetup is not virtual (it's virtual
one step higher in class hierarchy in CommonRuntimeTestBase), overridden
version in ArchTest was never used. This is causing ArchTest to
fail with openjdk8u60 version of java.lang.reflect (it's calling
Class#getDeclaredField in clinit, which fails on 32 bit
version because of different pointer sizes [arch_test forces
64-bit ISA])

Bug: 28666126
Test:  make -j 32 test-art-host-gtest
Change-Id: Ief370f5b18ef787575ac0f88ecbe17ebbf037542
runtime/common_runtime_test.h