natThrowable.cc (fillInStackTrace): Check for zero return from backtrace().
2000-07-19 Jeff Sturm <jeff.sturm@appnet.com> * java/lang/natThrowable.cc (fillInStackTrace): Check for zero return from backtrace(). From-SVN: r35135
This commit is contained in:
parent
4e62ab0ba3
commit
5cc80caa27
@ -1,3 +1,8 @@
|
||||
2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
|
||||
|
||||
* java/lang/natThrowable.cc (fillInStackTrace): Check for
|
||||
zero return from backtrace().
|
||||
|
||||
2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
|
||||
|
||||
* java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
|
||||
|
@ -61,9 +61,12 @@ java::lang::Throwable::fillInStackTrace (void)
|
||||
int n = backtrace (p, 128) - 1;
|
||||
#endif
|
||||
|
||||
// ??? Might this cause a problem if the byte array isn't aligned?
|
||||
stackTrace = JvNewByteArray (n * sizeof p[0]);
|
||||
memcpy (elements (stackTrace), p+1, (n * sizeof p[0]));
|
||||
if (n > 0)
|
||||
{
|
||||
// ??? Might this cause a problem if the byte array isn't aligned?
|
||||
stackTrace = JvNewByteArray (n * sizeof p[0]);
|
||||
memcpy (elements (stackTrace), p+1, (n * sizeof p[0]));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user