# HG changeset patch # User kvn # Date 1289352678 28800 # Node ID b0e6879e48fa67ab097fc9972f8eca9967cb2f76 # Parent 2db84614f61d286914c43afafec6abba696b67a6 6839891: Array overrun in vm ci Summary: fix index check Reviewed-by: never diff -r 2db84614f61d -r b0e6879e48fa 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 @@ // 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];