mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 08:34:30 +02:00
8207202: [Graal] compiler/graalunit/CoreTest.java fails
Reviewed-by: kvn
This commit is contained in:
parent
602a497270
commit
5226a6a2bb
1 changed files with 7 additions and 4 deletions
|
@ -435,6 +435,7 @@ IRT_END
|
||||||
|
|
||||||
|
|
||||||
IRT_ENTRY(void, InterpreterRuntime::create_klass_exception(JavaThread* thread, char* name, oopDesc* obj))
|
IRT_ENTRY(void, InterpreterRuntime::create_klass_exception(JavaThread* thread, char* name, oopDesc* obj))
|
||||||
|
// Produce the error message first because note_trap can safepoint
|
||||||
ResourceMark rm(thread);
|
ResourceMark rm(thread);
|
||||||
const char* klass_name = obj->klass()->external_name();
|
const char* klass_name = obj->klass()->external_name();
|
||||||
// lookup exception klass
|
// lookup exception klass
|
||||||
|
@ -448,20 +449,22 @@ IRT_ENTRY(void, InterpreterRuntime::create_klass_exception(JavaThread* thread, c
|
||||||
IRT_END
|
IRT_END
|
||||||
|
|
||||||
IRT_ENTRY(void, InterpreterRuntime::throw_ArrayIndexOutOfBoundsException(JavaThread* thread, arrayOopDesc* a, jint index))
|
IRT_ENTRY(void, InterpreterRuntime::throw_ArrayIndexOutOfBoundsException(JavaThread* thread, arrayOopDesc* a, jint index))
|
||||||
if (ProfileTraps) {
|
// Produce the error message first because note_trap can safepoint
|
||||||
note_trap(thread, Deoptimization::Reason_range_check, CHECK);
|
|
||||||
}
|
|
||||||
|
|
||||||
ResourceMark rm(thread);
|
ResourceMark rm(thread);
|
||||||
stringStream ss;
|
stringStream ss;
|
||||||
ss.print("Index %d out of bounds for length %d", index, a->length());
|
ss.print("Index %d out of bounds for length %d", index, a->length());
|
||||||
|
|
||||||
|
if (ProfileTraps) {
|
||||||
|
note_trap(thread, Deoptimization::Reason_range_check, CHECK);
|
||||||
|
}
|
||||||
|
|
||||||
THROW_MSG(vmSymbols::java_lang_ArrayIndexOutOfBoundsException(), ss.as_string());
|
THROW_MSG(vmSymbols::java_lang_ArrayIndexOutOfBoundsException(), ss.as_string());
|
||||||
IRT_END
|
IRT_END
|
||||||
|
|
||||||
IRT_ENTRY(void, InterpreterRuntime::throw_ClassCastException(
|
IRT_ENTRY(void, InterpreterRuntime::throw_ClassCastException(
|
||||||
JavaThread* thread, oopDesc* obj))
|
JavaThread* thread, oopDesc* obj))
|
||||||
|
|
||||||
|
// Produce the error message first because note_trap can safepoint
|
||||||
ResourceMark rm(thread);
|
ResourceMark rm(thread);
|
||||||
char* message = SharedRuntime::generate_class_cast_message(
|
char* message = SharedRuntime::generate_class_cast_message(
|
||||||
thread, obj->klass());
|
thread, obj->klass());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue