Skip to content

Commit d06d6f5

Browse files
committed
8262402: Make CATCH macro assert not fatal
Reviewed-by: dholmes
1 parent 47a0842 commit d06d6f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/utilities/exceptions.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ class Exceptions {
321321
THREAD); if (HAS_PENDING_EXCEPTION) { \
322322
oop ex = PENDING_EXCEPTION; \
323323
CLEAR_PENDING_EXCEPTION; \
324-
ex->print(); \
325-
ShouldNotReachHere(); \
324+
DEBUG_ONLY(ex->print();) \
325+
assert(false, "CATCH"); \
326326
} (void)(0
327327

328328
// ExceptionMark is a stack-allocated helper class for local exception handling.

0 commit comments

Comments
 (0)