1.1 --- a/src/share/vm/opto/runtime.cpp Mon Jan 04 07:04:46 2010 -0800 1.2 +++ b/src/share/vm/opto/runtime.cpp Mon Jan 04 18:38:08 2010 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 1998-2007 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 1998-2009 Sun Microsystems, Inc. All Rights Reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -858,6 +858,9 @@ 1.11 thread->set_exception_pc(pc); 1.12 thread->set_exception_handler_pc(handler_address); 1.13 thread->set_exception_stack_size(0); 1.14 + 1.15 + // Check if the exception PC is a MethodHandle call. 1.16 + thread->set_is_method_handle_exception(nm->is_method_handle_return(pc)); 1.17 } 1.18 1.19 // Restore correct return pc. Was saved above.