Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: java_lang_Thread.c 8272 2007-08-08 14:55:00Z twisti $
+ $Id: java_lang_Thread.c 8284 2007-08-10 08:58:39Z michi $
*/
#include "vm/types.h"
#include "native/jni.h"
+#include "native/llni.h"
#include "native/native.h"
#include "native/include/java_lang_String.h"
threadobject *thread;
#if defined(WITH_CLASSPATH_GNU)
- thread = (threadobject *) this->vmThread->vmdata;
+ thread = (threadobject *) LLNI_field_direct(LLNI_field_direct(this, vmThread), vmdata);
#elif defined(WITH_CLASSPATH_CLDC1_1)
thread = (threadobject *) this->vm_thread;
#endif
# if defined(WITH_CLASSPATH_GNU)
- t = (threadobject *) this->vmThread->vmdata;
+ t = (threadobject *) LLNI_field_direct(LLNI_field_direct(this, vmThread), vmdata);
# elif defined(WITH_CLASSPATH_SUN)
threadobject *t;
# if defined(WITH_CLASSPATH_GNU)
- t = (threadobject *) this->vmThread->vmdata;
+ t = (threadobject *) LLNI_field_direct(LLNI_field_direct(this, vmThread), vmdata);
# elif defined(WITH_CLASSPATH_SUN)
/* XXX this is just a quick hack */
threadobject *t;
# if defined(WITH_CLASSPATH_GNU)
- t = (threadobject *) this->vmThread->vmdata;
+ t = (threadobject *) LLNI_field_direct(LLNI_field_direct(this, vmThread), vmdata);
# elif defined(WITH_CLASSPATH_SUN)
/* XXX this is just a quick hack */
log_text("t ptr is NULL\n");
# if defined(ENABLE_JAVASE)
- if (t->group == NULL) {
+ if (LLNI_field_direct(t, group) == NULL) {
/* ThreadGroup of currentThread is not initialized */
- t->group = (java_lang_ThreadGroup *)
+ LLNI_field_direct(t, group) = (java_lang_ThreadGroup *)
native_new_and_init(class_java_lang_ThreadGroup);
- if (t->group == NULL)
+ if (LLNI_field_direct(t, group) == NULL)
log_text("unable to create ThreadGroup");
}
# endif
java_objectheader *o;
# if defined(WITH_CLASSPATH_GNU)
- thread = (threadobject *) this->vmThread->vmdata;
+ thread = (threadobject *) LLNI_field_direct(LLNI_field_direct(this, vmThread), vmdata);
# elif defined(WITH_CLASSPATH_CLDC1_1)
thread = (threadobject *) this->vm_thread;
# endif