summaryrefslogtreecommitdiff
path: root/runtime/class_loader_context.h
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2019-03-05 11:57:13 +0000
committer David Brazdil <dbrazdil@google.com> 2019-03-22 18:51:35 +0000
commit1a9ac537f52b88dea02d02c3063283e32a085fb5 (patch)
tree5fb2fce1a45d44d7fe6557f99d38669c9d075f52 /runtime/class_loader_context.h
parente5d93b58a530be39c9a067cdd7f491e4626ec51d (diff)
Support InMemoryDexClassLoader in ClassLoaderContext
Add new class loader tag IMC to class loader context spec which represents InMemoryDexClassLoader. A special case is required to not attempt to open its dex files as the dex location does not correspond to a real file path. This is achieved by setting load-attempted variable to 'true' when encountering IMC whilst parsing a spec. Context with IMC can still have opened dex files if it was created from an existing class loader. Bug: 72131483 Test: m test-art-host-gtest-class_loader_context_text Change-Id: Ic64065819018a1e56dee0f65405d26beb8fd7bbd
Diffstat (limited to 'runtime/class_loader_context.h')
-rw-r--r--runtime/class_loader_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/class_loader_context.h b/runtime/class_loader_context.h
index f8387ce6af..224b4d64f9 100644
--- a/runtime/class_loader_context.h
+++ b/runtime/class_loader_context.h
@@ -45,7 +45,8 @@ class ClassLoaderContext {
enum ClassLoaderType {
kInvalidClassLoader = 0,
kPathClassLoader = 1,
- kDelegateLastClassLoader = 2
+ kDelegateLastClassLoader = 2,
+ kInMemoryDexClassLoader = 3
};
~ClassLoaderContext();