Mercurial > hg > truffle
comparison test/compiler/whitebox/MakeMethodNotCompilableTest.java @ 20804:7848fc12602b
Merge with jdk8u40-b25
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Tue, 07 Apr 2015 14:58:49 +0200 |
parents | 52b4284cb496 f5f752e74840 |
children |
comparison
equal
deleted
inserted
replaced
20184:84105dcdb05b | 20804:7848fc12602b |
---|---|
129 WHITE_BOX.clearMethodState(method); | 129 WHITE_BOX.clearMethodState(method); |
130 if (!isCompilable()) { | 130 if (!isCompilable()) { |
131 throw new RuntimeException(method | 131 throw new RuntimeException(method |
132 + " is not compilable after clearMethodState()"); | 132 + " is not compilable after clearMethodState()"); |
133 } | 133 } |
134 | 134 // Make method not (OSR-)compilable (depending on testCase.isOsr()) |
135 makeNotCompilable(); | 135 makeNotCompilable(); |
136 if (isCompilable()) { | 136 if (isCompilable()) { |
137 throw new RuntimeException(method + " must be not compilable"); | 137 throw new RuntimeException(method + " must be not compilable"); |
138 } | 138 } |
139 | 139 // Try to (OSR-)compile method |
140 compile(); | 140 compile(); |
141 checkNotCompiled(); | 141 // Method should not be (OSR-)compiled |
142 checkNotCompiled(testCase.isOsr()); | |
142 if (isCompilable()) { | 143 if (isCompilable()) { |
143 throw new RuntimeException(method + " must be not compilable"); | 144 throw new RuntimeException(method + " must be not compilable"); |
144 } | 145 } |
145 // WB.clearMethodState() must reset no-compilable flags | 146 // WB.clearMethodState() must reset no-compilable flags |
146 WHITE_BOX.clearMethodState(method); | 147 WHITE_BOX.clearMethodState(method); |