OSDN Git Service

Remove back-door bootclasspath option from Runtime
authorRichard Uhler <ruhler@google.com>
Fri, 2 Jan 2015 21:28:22 +0000 (13:28 -0800)
committerRichard Uhler <ruhler@google.com>
Thu, 8 Jan 2015 18:50:38 +0000 (10:50 -0800)
commitc275259449ec57987e52d3ab1eda3272b994488f
treeca3a6d182d768f8ef046a33576572a2e46370cc1
parent4270e74152d8a7cd979ab5a92fe2a8f84adb8a42
Remove back-door bootclasspath option from Runtime

The 'bootclasspath' option allowed users of the Runtime to load their
own boot class path DexFiles and pass them directly to the Runtime as
an option. This obscures the fact that the Runtime must take ownership
of the boot class path DexFiles.

This change removes the use of the bootclasspath option by dex2oat and
the common runtime tests. For dex2oat, we use the existing
-Xbootclasspath option instead, and introduce a new
-Xbootclasspath-locations option to override the dex locations for the
loaded boot class path dex files. For the common runtime tests, we
simply use -Xbootclasspath.

Bug: 18809837
Change-Id: Idfcd4885390bf0f3dc350993756dd337220def73
dex2oat/dex2oat.cc
runtime/common_runtime_test.cc
runtime/common_runtime_test.h
runtime/parsed_options.cc
runtime/parsed_options.h
runtime/runtime.cc