Add MANAGED to class definition for classes mirrored beween C++ and managed code
The MANAGED attribute causes the classes to be packed to avoid platform specific padding.
Motivated by the recent change to StringClass where the target had an extra trailing word.
Change-Id: I4a8f11845169e61c024914c04623713ced9a9e66
diff --git a/src/class_loader.h b/src/class_loader.h
index 80435c6..80444f5 100644
--- a/src/class_loader.h
+++ b/src/class_loader.h
@@ -11,6 +11,7 @@
namespace art {
// C++ mirror of java.lang.ClassLoader
+// TODO: add MANAGED when class_path_ removed
class ClassLoader : public Object {
public:
static const std::vector<const DexFile*>& GetClassPath(const ClassLoader* class_loader);
@@ -34,6 +35,7 @@
};
// C++ mirror of dalvik.system.BaseDexClassLoader
+// TODO: add MANAGED when class_path_ removed
class BaseDexClassLoader : public ClassLoader {
private:
// Field order required by test "ValidateFieldOrderOfJavaCppUnionClasses".
@@ -45,6 +47,7 @@
};
// C++ mirror of dalvik.system.PathClassLoader
+// TODO: add MANAGED when class_path_ removed
class PathClassLoader : public BaseDexClassLoader {
public:
static const PathClassLoader* Alloc(std::vector<const DexFile*> dex_files);