6839891: Array overrun in vm ci
authorkvn
Tue Nov 09 17:31:18 2010 -0800 (2 years ago)
changeset 2191b0e6879e48fa
parent 21902db84614f61d
child 219284d114b9170e
child 22090ac62b4d6507
6839891: Array overrun in vm ci
Summary: fix index check
Reviewed-by: never
src/share/vm/ci/ciInstanceKlass.cpp
--- a/src/share/vm/ci/ciInstanceKlass.cpp Tue Nov 09 15:12:15 2010 -0800
+++ b/src/share/vm/ci/ciInstanceKlass.cpp Tue Nov 09 17:31:18 2010 -0800
@@ -564,7 +564,7 @@ bool ciInstanceKlass::is_leaf_type() {
// This is OK, since any dependencies we decide to assert
// will be checked later under the Compile_lock.
ciInstanceKlass* ciInstanceKlass::implementor(int n) {
- if (n > implementors_limit) {
+ if (n >= implementors_limit) {
return NULL;
}
ciInstanceKlass* impl = _implementors[n];