Initialize runtime constituents on runtime construction.
Change-Id: I63fff272b64bd29a7f828dac48aed91833af1eee
diff --git a/src/class_linker.cc b/src/class_linker.cc
index 5b50113..e2ab39a 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -19,6 +19,13 @@
namespace art {
+ClassLinker* ClassLinker::Create() {
+ scoped_ptr<ClassLinker> class_linker(new ClassLinker);
+ class_linker->Init();
+ // TODO: check for failure during initialization
+ return class_linker.release();
+}
+
void ClassLinker::Init() {
// Allocate and partially initialize the Object and Class classes.
// Initialization will be completed when the definitions are loaded.