From ac3ac681a1d1d5d5d4662b7e4d3cf8e0b4d53d27 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 20 Sep 2018 11:01:43 +0100 Subject: Pass JIT roots as a vector> to JIT cache. This avoids creating an object on the heap and thus prevents issues for the 904-object-allocation in the JIT-at-first-use configuration. Test: run_build_test_target.py -j48 art-jit-on-first-use (test 904 passes; test 1935 still failing). Bug: 116189667 Change-Id: I58c0c8cb2d78edc63dab7d72e69b882abbfb79fd --- compiler/optimizing/code_generator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/code_generator.h') diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index 2ca15f7fed..4e73e0bdcb 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -356,8 +356,8 @@ class CodeGenerator : public DeletableArenaObject { // Fills the `literals` array with literals collected during code generation. // Also emits literal patches. void EmitJitRoots(uint8_t* code, - Handle> roots, - const uint8_t* roots_data) + const uint8_t* roots_data, + /*out*/std::vector>* roots) REQUIRES_SHARED(Locks::mutator_lock_); bool IsLeafMethod() const { -- cgit v1.2.3-59-g8ed1b