Created --runtime-arg switch for dex2oat to pass arguments to runtime.
This replaces the -Xms, -Xmx, and -verbose options.
Change-Id: Idc023b6d369bd8b5df932b9f2eb6dbc79d591ab1
diff --git a/src/class_linker.cc b/src/class_linker.cc
index afb6721..7c07f00 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -567,8 +567,8 @@
execl("/system/bin/dex2oatd",
"/system/bin/dex2oatd",
- "-Xms64m",
- "-Xmx64m",
+ "--runtime-arg", "-Xms64m",
+ "--runtime-arg", "-Xmx64m",
boot_image_option.c_str(),
dex_file_option.c_str(),
oat_file_option.c_str(),