Pass the Java caller's location to OpenNativeLibrary.
Will be used to find the linker namespace to use.
Bug: 122874359
Test: m, gtest, run-test, CtsJdwpTests
Change-Id: Ibeebe20844e2bbdc306d65fb4f2ee3237343fa09
diff --git a/runtime/ti/agent.cc b/runtime/ti/agent.cc
index bd53958..cdfe727 100644
--- a/runtime/ti/agent.cc
+++ b/runtime/ti/agent.cc
@@ -123,6 +123,7 @@
Runtime::Current()->GetTargetSdkVersion(),
name_.c_str(),
class_loader,
+ nullptr,
library_path.get(),
&needs_native_bridge,
&nativeloader_error_msg);