Canonicalize shared libraries in ClassLoaderContext::CreateClassLoader.
bug:111174995
Test: class_loader_context_test
Change-Id: I547b8d5660ac5cb600d09b8546062e4b054f0eb7
diff --git a/runtime/class_loader_context.h b/runtime/class_loader_context.h
index 37cef81..71f40ac 100644
--- a/runtime/class_loader_context.h
+++ b/runtime/class_loader_context.h
@@ -89,7 +89,10 @@
// If the context is empty, this method only creates a single PathClassLoader with the
// given compilation_sources.
//
- // Notes:
+ // Shared libraries found in the chain will be canonicalized based on the dex files they
+ // contain.
+ //
+ // Implementation notes:
// 1) the objects are not completely set up. Do not use this outside of tests and the compiler.
// 2) should only be called before the first call to OpenDexFiles().
jobject CreateClassLoader(const std::vector<const DexFile*>& compilation_sources) const;