ART: Make IndirectReferenceTable resizable
Allow backing table to be resized. This can be used for the local
reference table, where synchronization is not an issue.
Bug: 32125344
Test: m test-art-host
Change-Id: Iae3a933e330026231b17fdde44bcdd99c235dff1
diff --git a/runtime/jni_env_ext.cc b/runtime/jni_env_ext.cc
index 79b3438..342e0d2 100644
--- a/runtime/jni_env_ext.cc
+++ b/runtime/jni_env_ext.cc
@@ -69,7 +69,7 @@
: self(self_in),
vm(vm_in),
local_ref_cookie(kIRTFirstSegment),
- locals(kLocalsInitial, kLocal, error_msg),
+ locals(kLocalsInitial, kLocal, IndirectReferenceTable::ResizableCapacity::kYes, error_msg),
check_jni(false),
runtime_deleted(false),
critical(0),