comparison src/share/vm/c1x/c1x_VMEntries.cpp @ 2665:b101099de4c8

small fix to recordBailout
author Lukas Stadler <lukas.stadler@jku.at>
date Thu, 12 May 2011 10:26:55 +0200
parents d7c0775d7e72
children 027adfafd47e
comparison
equal deleted inserted replaced
2664:5af7b38be963 2665:b101099de4c8
640 CodeInstaller installer(JNIHandles::resolve(targetMethod), id); 640 CodeInstaller installer(JNIHandles::resolve(targetMethod), id);
641 return id; 641 return id;
642 } 642 }
643 643
644 // public void recordBailout(String reason); 644 // public void recordBailout(String reason);
645 JNIEXPORT void JNICALL Java_com_oracle_graal_runtime_VMEntries_recordBailout(JNIEnv *jniEnv, jobject message) { 645 JNIEXPORT void JNICALL Java_com_oracle_graal_runtime_VMEntries_recordBailout(JNIEnv *jniEnv, jobject, jobject message) {
646 if (C1XBailoutIsFatal) { 646 if (C1XBailoutIsFatal) {
647 Handle msg = JNIHandles::resolve(message); 647 Handle msg = JNIHandles::resolve(message);
648 if (!msg.is_null()) { 648 if (!msg.is_null()) {
649 java_lang_String::print(msg, tty); 649 java_lang_String::print(msg, tty);
650 } 650 }
651 fatal("Bailout in C1X"); 651 vm_abort(false);
652 } 652 }
653 } 653 }
654 654
655 655
656 656