diff src/share/vm/utilities/preserveException.cpp @ 4916:1b0e0f8be510

7131006: java/lang/management/ThreadMXBean/ThreadLists.java Reviewed-by: dholmes, acorn
author minqi
date Thu, 09 Feb 2012 00:51:47 -0800
parents f95d63e2154a
children b9a9ed0f8eeb
line wrap: on
line diff
--- a/src/share/vm/utilities/preserveException.cpp	Tue Feb 07 12:34:31 2012 -0800
+++ b/src/share/vm/utilities/preserveException.cpp	Thu Feb 09 00:51:47 2012 -0800
@@ -32,9 +32,9 @@
   thread     = Thread::current();
   _thread    = thread;
   _preserved_exception_oop = Handle(thread, _thread->pending_exception());
-  _thread->clear_pending_exception(); // Needed to avoid infinite recursion
   _preserved_exception_line = _thread->exception_line();
   _preserved_exception_file = _thread->exception_file();
+  _thread->clear_pending_exception(); // Needed to avoid infinite recursion
 }