Mercurial > hg > truffle
comparison test/compiler/whitebox/DeoptimizeMethodTest.java @ 8766:4efac99a998b
8008211: Some of WB tests on compiler fail
Reviewed-by: kvn, vlivanov
author | iignatyev |
---|---|
date | Mon, 18 Mar 2013 04:29:08 -0700 |
parents | 1b0dc9f87e75 |
children | b84fd7d73702 |
comparison
equal
deleted
inserted
replaced
8765:592f9722c72e | 8766:4efac99a998b |
---|---|
30 * @author igor.ignatyev@oracle.com | 30 * @author igor.ignatyev@oracle.com |
31 */ | 31 */ |
32 public class DeoptimizeMethodTest extends CompilerWhiteBoxTest { | 32 public class DeoptimizeMethodTest extends CompilerWhiteBoxTest { |
33 | 33 |
34 public static void main(String[] args) throws Exception { | 34 public static void main(String[] args) throws Exception { |
35 // to prevent inlining #method into #compile() | |
36 WHITE_BOX.setDontInlineMethod(METHOD, true); | |
35 new DeoptimizeMethodTest().runTest(); | 37 new DeoptimizeMethodTest().runTest(); |
36 } | 38 } |
37 | 39 |
38 protected void test() throws Exception { | 40 protected void test() throws Exception { |
39 // to prevent inlining #method into #compile() | |
40 WHITE_BOX.setDontInlineMethod(METHOD, true); | |
41 compile(); | 41 compile(); |
42 checkCompiled(METHOD); | 42 checkCompiled(METHOD); |
43 WHITE_BOX.deoptimizeMethod(METHOD); | 43 WHITE_BOX.deoptimizeMethod(METHOD); |
44 checkNotCompiled(METHOD); | 44 checkNotCompiled(METHOD); |
45 } | 45 } |