Skip to content

Commit

Permalink
Fix inlining in TruffleRunner compilations.
Browse files Browse the repository at this point in the history
  • Loading branch information
rschatz authored and chumer committed Mar 19, 2019
1 parent 4af7c88 commit 594fae1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -113,7 +113,7 @@ public void finishWarmup(GraalTestContext testContext, OptimizedCallTarget callT
OptionValues options = TruffleRuntimeOptions.getOptions();
try (TruffleCompilation compilation = compiler.openCompilation(callTarget)) {
try (AutoCloseable s = testContext.debug.scope("UnitTest")) {
truffleRuntime.doCompile(testContext.debug, compilation, TruffleRuntimeOptions.asMap(options), callTarget, null);
truffleRuntime.doCompile(testContext.debug, compilation, TruffleRuntimeOptions.asMap(options), callTarget, new CancellableCompileTask(true));
} catch (Throwable e) {
throw new InternalError(e);
}
Expand Down

0 comments on commit 594fae1

Please sign in to comment.