* src/threads/threadlist.hpp (_last_index): Added.
int32_t ThreadList::_peak_of_active_java_threads;
int32_t ThreadList::_number_of_non_daemon_threads;
+int32_t ThreadList::_last_index = 0;
+
/**
* Dumps info for all threads running in the VM. This function is
}
else {
// Get a new the thread index.
- index = _active_thread_list.size() + 1;
+ index = ++_last_index;
}
unlock();
// Thread counters for internal usage.
static int32_t _number_of_non_daemon_threads;
+ static int32_t _last_index;
+
static void remove_from_active_thread_list(threadobject* t);
static void add_to_free_thread_list(threadobject* t);
static void add_to_free_index_list(int32_t index);