--- old/hotspot/src/share/vm/opto/callGenerator.cpp 2009-08-01 04:13:26.446734353 +0100 +++ new/hotspot/src/share/vm/opto/callGenerator.cpp 2009-08-01 04:13:26.377513097 +0100 @@ -2,7 +2,7 @@ #pragma ident "@(#)callGenerator.cpp 1.49 07/08/07 15:24:21 JVM" #endif /* - * Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -467,6 +467,12 @@ } } + if (kit.stopped()) { + // Instance exactly does not matches the desired type. + kit.set_jvms(slow_jvms); + return kit.transfer_exceptions_into_jvms(); + } + // fall through if the instance exactly matches the desired type kit.replace_in_map(receiver, exact_receiver);