[vmkit-commits] [vmkit] r85586 - /vmkit/trunk/lib/JnJVM/VMCore/JavaThread.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Fri Oct 30 04:34:59 PDT 2009


Author: geoffray
Date: Fri Oct 30 06:34:59 2009
New Revision: 85586

URL: http://llvm.org/viewvc/llvm-project?rev=85586&view=rev
Log:
Get this instead of currentThread when printing backtrace.


Modified:
    vmkit/trunk/lib/JnJVM/VMCore/JavaThread.cpp

Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaThread.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaThread.cpp?rev=85586&r1=85585&r2=85586&view=diff

==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaThread.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaThread.cpp Fri Oct 30 06:34:59 2009
@@ -298,12 +298,12 @@
 void JavaThread::printBacktrace() {
   std::vector<void*>::iterator it = addresses.end();
   Jnjvm* vm = getJVM();
-  mvm::Thread* th = mvm::Thread::get();
 
-  assert((th == this || getLastSP()) && "No last sp on foreign thread");
+  assert((mvm::Thread::get() == this || getLastSP()) &&
+         "No last sp on foreign thread");
   
-  void** addr = mvm::Thread::get() == th ? 
-    (void**)FRAME_PTR() : (void**)th->getLastSP();
+  void** addr = mvm::Thread::get() == this ? (void**)FRAME_PTR() :
+                                             (void**)getLastSP();
   assert(addr && "No address to start with");
 
   void** oldAddr = addr;





More information about the vmkit-commits mailing list