* src/threads/threadlist.hpp (ThreadList): Adapted thread counting methods to
authorMichael Starzinger <michi@complang.tuwien.ac.at>
Thu, 24 Sep 2009 09:06:20 +0000 (11:06 +0200)
committerMichael Starzinger <michi@complang.tuwien.ac.at>
Thu, 24 Sep 2009 09:06:20 +0000 (11:06 +0200)
commit6661612c5b436511fdc0caf372587fa6a6225782
tree4b66dbc3ee31f47e047b01030f49f49f8370a13b
parent7812501fee4b1d3ea9ad80d9a5452a1a9c527ef0
* src/threads/threadlist.hpp (ThreadList): Adapted thread counting methods to
hide internal threads from Java. Also added some comments.
* src/threads/threadlist.cpp (ThreadList::get_active_java_threads): Implemented.
(ThreadList::get_number_of_daemon_java_threads): Likewise.

* src/native/vm/gnuclasspath/gnu_java_lang_management_VMThreadMXBeanImpl.cpp:
Adapted to above changes.
* src/native/vm/openjdk/jvm.cpp (JVM_GetAllThreads): Likewise.
* src/threads/posix/thread-posix.cpp: Removed obsolete counting code.
* src/threads/thread.cpp (thread_new): Counting via threadlist requires that
flags are set during threadobject creation.
* src/vm/global.h (MAX): Defined as macro.
* src/vm/vm.cpp (VM::VM): Remember VM initialization time.
* src/vm/vm.hpp (VM::get_inittime): Returns above time.
src/native/vm/gnuclasspath/gnu_java_lang_management_VMThreadMXBeanImpl.cpp
src/native/vm/openjdk/jvm.cpp
src/threads/posix/thread-posix.cpp
src/threads/thread.cpp
src/threads/threadlist.cpp
src/threads/threadlist.hpp
src/vm/global.h
src/vm/vm.cpp
src/vm/vm.hpp