diff options
Diffstat (limited to 'test/159-app-image-fields')
| -rw-r--r-- | test/159-app-image-fields/run.py (renamed from test/159-app-image-fields/run) | 15 | ||||
| -rw-r--r-- | test/159-app-image-fields/src/Main.java | 1 |
2 files changed, 11 insertions, 5 deletions
diff --git a/test/159-app-image-fields/run b/test/159-app-image-fields/run.py index 74facb07bb..ae99f54f08 100644 --- a/test/159-app-image-fields/run +++ b/test/159-app-image-fields/run.py @@ -14,8 +14,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Use a profile to put specific classes in the app image. -# Also run the compiler with -j1 to ensure specific class verification order. -# And limit the managed heap to 16 MiB to speed up GCs. -exec ${RUN} $@ --profile -Xcompiler-option --compiler-filter=speed-profile \ - -Xcompiler-option -j1 --runtime-option -Xmx16m + +def run(ctx, args): + # Use a profile to put specific classes in the app image. + # Also run the compiler with -j1 to ensure specific class verification order. + # And limit the managed heap to 16 MiB to speed up GCs. + ctx.default_run( + args, + profile=True, + Xcompiler_option=["--compiler-filter=speed-profile", "-j1"], + runtime_option=["-Xmx16m"]) diff --git a/test/159-app-image-fields/src/Main.java b/test/159-app-image-fields/src/Main.java index e7db1e1f16..d238f773ca 100644 --- a/test/159-app-image-fields/src/Main.java +++ b/test/159-app-image-fields/src/Main.java @@ -115,6 +115,7 @@ public class Main { // and the verification of Main is last and fills the DexCache with Derived.value. // class Fields { + // clang-format off public static int clobberDexCache() { return 0 + testField0000 |