[vmkit-commits] [vmkit] r59514 - /vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Nov 18 02:18:14 PST 2008
Author: geoffray
Date: Tue Nov 18 04:18:05 2008
New Revision: 59514
URL: http://llvm.org/viewvc/llvm-project?rev=59514&view=rev
Log:
the struct _Unwind_Exception is of size 32, whether we're on a 64 or 32bit.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h?rev=59514&r1=59513&r2=59514&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h Tue Nov 18 04:18:05 2008
@@ -66,8 +66,9 @@
}
static void* getException() {
+ // 32 = sizeof(_Unwind_Exception) in libgcc...
return (void*)
- ((char*)JavaThread::get()->internalPendingException - 8 * sizeof(void*));
+ ((uintptr_t)JavaThread::get()->internalPendingException - 32);
}
/// throwException - Throws the given exception in the current thread.
More information about the vmkit-commits
mailing list