6839891: Array overrun in vm ci
authorkvn
Tue, 09 Nov 2010 17:31:18 -0800
changeset 7125 f088bb3df36d
parent 7124 7b83929ea9bb
child 7126 22dffbcfe42d
child 7388 98cea0fd27fc
6839891: Array overrun in vm ci Summary: fix index check Reviewed-by: never
hotspot/src/share/vm/ci/ciInstanceKlass.cpp
--- a/hotspot/src/share/vm/ci/ciInstanceKlass.cpp	Tue Nov 09 15:12:15 2010 -0800
+++ b/hotspot/src/share/vm/ci/ciInstanceKlass.cpp	Tue Nov 09 17:31:18 2010 -0800
@@ -564,7 +564,7 @@
 // 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];