comparison src/share/vm/c1/c1_Runtime1.cpp @ 2168:e4fee0bdaa85

7008809: should report the class in ArrayStoreExceptions from compiled code Reviewed-by: iveresov, twisti
author never
date Mon, 24 Jan 2011 13:34:18 -0800
parents 8012aa3ccede
children d25d4ca69222 1b4e6a5d98e0
comparison
equal deleted inserted replaced
2167:aa4b04b68652 2168:e4fee0bdaa85
337 JRT_ENTRY(void, Runtime1::unimplemented_entry(JavaThread* thread, StubID id)) 337 JRT_ENTRY(void, Runtime1::unimplemented_entry(JavaThread* thread, StubID id))
338 tty->print_cr("Runtime1::entry_for(%d) returned unimplemented entry point", id); 338 tty->print_cr("Runtime1::entry_for(%d) returned unimplemented entry point", id);
339 JRT_END 339 JRT_END
340 340
341 341
342 JRT_ENTRY(void, Runtime1::throw_array_store_exception(JavaThread* thread)) 342 JRT_ENTRY(void, Runtime1::throw_array_store_exception(JavaThread* thread, oopDesc* obj))
343 THROW(vmSymbolHandles::java_lang_ArrayStoreException()); 343 ResourceMark rm(thread);
344 const char* klass_name = Klass::cast(obj->klass())->external_name();
345 SharedRuntime::throw_and_post_jvmti_exception(thread, vmSymbols::java_lang_ArrayStoreException(), klass_name);
344 JRT_END 346 JRT_END
345 347
346 348
347 JRT_ENTRY(void, Runtime1::post_jvmti_exception_throw(JavaThread* thread)) 349 JRT_ENTRY(void, Runtime1::post_jvmti_exception_throw(JavaThread* thread))
348 if (JvmtiExport::can_post_on_exceptions()) { 350 if (JvmtiExport::can_post_on_exceptions()) {