equal
deleted
inserted
replaced
788 } |
788 } |
789 // for AbortVMOnException flag |
789 // for AbortVMOnException flag |
790 NOT_PRODUCT(Exceptions::debug_check_abort(exception)); |
790 NOT_PRODUCT(Exceptions::debug_check_abort(exception)); |
791 |
791 |
792 #ifdef ASSERT |
792 #ifdef ASSERT |
793 if (!(exception->is_a(SystemDictionary::throwable_klass()))) { |
793 if (!(exception->is_a(SystemDictionary::Throwable_klass()))) { |
794 // should throw an exception here |
794 // should throw an exception here |
795 ShouldNotReachHere(); |
795 ShouldNotReachHere(); |
796 } |
796 } |
797 #endif |
797 #endif |
798 |
798 |
937 #ifndef PRODUCT |
937 #ifndef PRODUCT |
938 SharedRuntime::_rethrow_ctr++; // count rethrows |
938 SharedRuntime::_rethrow_ctr++; // count rethrows |
939 #endif |
939 #endif |
940 assert (exception != NULL, "should have thrown a NULLPointerException"); |
940 assert (exception != NULL, "should have thrown a NULLPointerException"); |
941 #ifdef ASSERT |
941 #ifdef ASSERT |
942 if (!(exception->is_a(SystemDictionary::throwable_klass()))) { |
942 if (!(exception->is_a(SystemDictionary::Throwable_klass()))) { |
943 // should throw an exception here |
943 // should throw an exception here |
944 ShouldNotReachHere(); |
944 ShouldNotReachHere(); |
945 } |
945 } |
946 #endif |
946 #endif |
947 |
947 |