comparison src/share/vm/interpreter/interpreterRuntime.cpp @ 6213:8150fa46d2ed

7178145: Change constMethodOop::_exception_table to optionally inlined u2 table. Summary: Change constMethodOop::_exception_table to optionally inlined u2 table. Reviewed-by: bdelsart, coleenp, kamg
author jiangli
date Tue, 26 Jun 2012 19:08:44 -0400
parents e2fe93124108
children e74da3c2b827
comparison
equal deleted inserted replaced
6177:06320b1578cb 6213:8150fa46d2ed
1 /* 1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
373 IRT_ENTRY(address, InterpreterRuntime::exception_handler_for_exception(JavaThread* thread, oopDesc* exception)) 373 IRT_ENTRY(address, InterpreterRuntime::exception_handler_for_exception(JavaThread* thread, oopDesc* exception))
374 374
375 Handle h_exception(thread, exception); 375 Handle h_exception(thread, exception);
376 methodHandle h_method (thread, method(thread)); 376 methodHandle h_method (thread, method(thread));
377 constantPoolHandle h_constants(thread, h_method->constants()); 377 constantPoolHandle h_constants(thread, h_method->constants());
378 typeArrayHandle h_extable (thread, h_method->exception_table());
379 bool should_repeat; 378 bool should_repeat;
380 int handler_bci; 379 int handler_bci;
381 int current_bci = bci(thread); 380 int current_bci = bci(thread);
382 381
383 // Need to do this check first since when _do_not_unlock_if_synchronized 382 // Need to do this check first since when _do_not_unlock_if_synchronized