* src/threads/thread.c (thread_create_object): New function.
(thread_method_init): Made static.
(threadgroup_system, threadgroup_main): Changed type to java_handle_t.
(thread_create_initial_threadgroup): Chnaged type of
threadgroup_system and threadgroup_main.
(thread_create_initial_thread): Use thread_create_object.
(threads_thread_start_internal): Likewise.
(threads_attach_current_thread): Likewise.
(threads_thread_print_info): Use thread_is_daemon.
* src/threads/thread.h (thread_method_init): Removed.
(thread_is_daemon): New function.
* src/threads/threadlist.c (threadlist_get_non_daemons): Use
thread_is_daemon.