interpret.cc: Don't include fdlibm.h.
2000-02-10 Andrew Haley <aph@cygnus.com> * interpret.cc: Don't include fdlibm.h. Replace #if with #ifdef throughout. Declare extern __ieee754_fmod. (continue1): Remove op_getfield, op_getstatic, op_putfield, op_putstatic insns. * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer. Search class hierarchy for superclass vtable. * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall off the end of a pointer list. * java/lang/natThread.cc (stop): Don't abort, throw an exception instead. (suspend): Ditto. From-SVN: r31897
This commit is contained in:
parent
ae0a06c54b
commit
715bdd8117
5 changed files with 130 additions and 312 deletions
|
@ -368,12 +368,15 @@ _Jv_UnregisterClass (jclass the_class)
|
|||
}
|
||||
|
||||
_Jv_LoaderInfo **info = &(initiated_classes[hash]);
|
||||
for ( ; *info; info = &((*info)->next))
|
||||
for ( ; ; info = &((*info)->next))
|
||||
{
|
||||
while ((*info)->klass == the_class)
|
||||
while (*info && (*info)->klass == the_class)
|
||||
{
|
||||
*info = (*info)->next;
|
||||
}
|
||||
|
||||
if (*info == NULL)
|
||||
break;
|
||||
}
|
||||
|
||||
_Jv_MonitorExit (&ClassClass);
|
||||
|
|
|
@ -19,6 +19,7 @@ details. */
|
|||
#include <java/lang/Thread.h>
|
||||
#include <java/lang/ThreadGroup.h>
|
||||
#include <java/lang/IllegalArgumentException.h>
|
||||
#include <java/lang/UnsupportedOperationException.h>
|
||||
#include <java/lang/IllegalThreadStateException.h>
|
||||
#include <java/lang/InterruptedException.h>
|
||||
#include <java/lang/NullPointerException.h>
|
||||
|
@ -306,14 +307,16 @@ java::lang::Thread::start (void)
|
|||
void
|
||||
java::lang::Thread::stop (java::lang::Throwable *)
|
||||
{
|
||||
JvFail ("java::lang::Thread::stop unimplemented");
|
||||
_Jv_Throw (new UnsupportedOperationException
|
||||
(JvNewStringLatin1 ("java::lang::Thread::stop unimplemented")));
|
||||
}
|
||||
|
||||
void
|
||||
java::lang::Thread::suspend (void)
|
||||
{
|
||||
checkAccess ();
|
||||
JvFail ("java::lang::Thread::suspend unimplemented");
|
||||
_Jv_Throw (new UnsupportedOperationException
|
||||
(JvNewStringLatin1 ("java::lang::Thread::suspend unimplemented")));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue