mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
7153771: array bound check elimination for c1
When possible optimize out array bound checks, inserting predicates when needed. Reviewed-by: never, kvn, twisti
This commit is contained in:
parent
2f4ecb86a2
commit
06ef4cddf7
40 changed files with 2861 additions and 153 deletions
|
@ -2228,8 +2228,6 @@ void InstanceKlass::clean_implementors_list(BoolObjectClosure* is_alive) {
|
|||
}
|
||||
|
||||
void InstanceKlass::clean_method_data(BoolObjectClosure* is_alive) {
|
||||
#ifdef COMPILER2
|
||||
// Currently only used by C2.
|
||||
for (int m = 0; m < methods()->length(); m++) {
|
||||
MethodData* mdo = methods()->at(m)->method_data();
|
||||
if (mdo != NULL) {
|
||||
|
@ -2240,15 +2238,6 @@ void InstanceKlass::clean_method_data(BoolObjectClosure* is_alive) {
|
|||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
#ifdef ASSERT
|
||||
// Verify that we haven't started to use MDOs for C1.
|
||||
for (int m = 0; m < methods()->length(); m++) {
|
||||
MethodData* mdo = methods()->at(m)->method_data();
|
||||
assert(mdo == NULL, "Didn't expect C1 to use MDOs");
|
||||
}
|
||||
#endif // ASSERT
|
||||
#endif // !COMPILER2
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue