OSDN Git Service

Enable compiled-methods= dex2oat switch
authorWojciech Staszkiewicz <staszkiewicz@google.com>
Tue, 9 Aug 2016 21:30:55 +0000 (14:30 -0700)
committerWojciech Staszkiewicz <staszkiewicz@google.com>
Tue, 9 Aug 2016 23:52:37 +0000 (16:52 -0700)
Pass compiled_methods instead of nullptr from dex2oat to
compiler driver.

Test: Run dex2oat with compiled-methods and dump-passes
set. Look at the dump-passes output and verify that only
methods provided in compiled-methods are compiled.

Change-Id: Ic7249878f7bde5fdb18f9cc348b7ba82de486df8

dex2oat/dex2oat.cc

index eb11f6d..cfcfe1c 100644 (file)
@@ -1576,7 +1576,7 @@ class Dex2Oat FINAL {
                                      IsAppImage(),
                                      image_classes_.release(),
                                      compiled_classes_.release(),
-                                     /* compiled_methods */ nullptr,
+                                     compiled_methods_.release(),
                                      thread_count_,
                                      dump_stats_,
                                      dump_passes_,