* src/threads/thread.hpp (thread_set_object, thread_get_object): Removed.
[cacao.git] / src / threads / posix / thread-posix.cpp
index 058a3bda94522821d1b4bd600e21c667137f17cb..9b238ce419ab891fcae41cf5ce90df0ae9feb9c4 100644 (file)
@@ -741,7 +741,7 @@ static void *threads_startup_thread(void *arg)
 #endif
 
        // Get the java.lang.Thread object for this thread.
-       java_handle_t* object = thread_get_object(t);
+       java_handle_t* object = LLNI_WRAP(t->object);
        java_lang_Thread jlt(object);
 
        /* set our priority */
@@ -926,7 +926,7 @@ bool thread_detach_current_thread(void)
 
        DEBUGTHREADS("detaching", t);
 
-       java_handle_t* object = thread_get_object(t);
+       java_handle_t* object = LLNI_WRAP(t->object);
        java_lang_Thread jlt(object);
 
 #if defined(ENABLE_JAVASE)