#include "config.h"
+#include <assert.h>
#include <stdint.h>
#include "native/jni.hpp"
{
log_println("Java_java_lang_VMThread_countStackFrames: Deprecated. Not implemented.");
- return 0;
+ return 0;
}
h = (java_handle_t *) _this;
t = thread_get_thread(h);
+ assert(t != NULL);
threads_thread_interrupt(t);
#endif
h = (java_handle_t *) _this;
t = thread_get_thread(h);
+ assert(t != NULL);
return thread_is_interrupted(t);
#else
h = (java_handle_t *) _this;
t = thread_get_thread(h);
+ assert(t != NULL);
threads_set_thread_priority(t->tid, priority);
#endif
h = (java_handle_t *) _this;
t = thread_get_thread(h);
+ assert(t != NULL);
state = cacaothread_get_state(t);
h = (java_handle_t *) jthread;
t = thread_get_thread(h);
- /* The threadobject is null when a thread is created in Java. The
- priority is set later during startup. */
+ /* The threadobject is null when a thread is created in Java. */
if (t == NULL)
return 0;
h = (java_handle_t *) jthread;
t = thread_get_thread(h);
+ /* The threadobject is null when a thread is created in Java. */
+
if (t == NULL)
return;
h = (java_handle_t *) jthread;
t = thread_get_thread(h);
+ /* The threadobject is null when a thread is created in Java. */
+
+ if (t == NULL)
+ return JNI_FALSE;
+
interrupted = thread_is_interrupted(t);
if (interrupted && clear_interrupted)
// Get thread for the given thread object.
threadobject* t = thread_get_thread(thread);
+ // The threadobject is null when a thread is created in Java.
if (t == NULL)
continue;