Tue, 09 Nov 2010 17:31:18 -0800
6839891: Array overrun in vm ci
Summary: fix index check
Reviewed-by: never
src/share/vm/ci/ciInstanceKlass.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/ci/ciInstanceKlass.cpp Tue Nov 09 15:12:15 2010 -0800 1.2 +++ b/src/share/vm/ci/ciInstanceKlass.cpp Tue Nov 09 17:31:18 2010 -0800 1.3 @@ -564,7 +564,7 @@ 1.4 // This is OK, since any dependencies we decide to assert 1.5 // will be checked later under the Compile_lock. 1.6 ciInstanceKlass* ciInstanceKlass::implementor(int n) { 1.7 - if (n > implementors_limit) { 1.8 + if (n >= implementors_limit) { 1.9 return NULL; 1.10 } 1.11 ciInstanceKlass* impl = _implementors[n];