+2007-01-17 Marco Trudel <mtrudel@gmx.ch>
+
+ * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL.
+ Fixed indentation. Removed unused variable.
+
2007-01-16 Tom Tromey <tromey@redhat.com>
* java/lang/natThread.cc (finalize_native): Remove cast.
// jvmti.cc - JVMTI implementation
-/* Copyright (C) 2006 Free Software Foundation
+/* Copyright (C) 2006, 2007 Free Software Foundation
This file is part of libgcj.
return JVMTI_ERROR_NONE;
}
-jvmtiError
+static jvmtiError JNICALL
_Jv_JVMTI_GetAllThreads(MAYBE_UNUSED jvmtiEnv *env, jint *thread_cnt,
jthread **threads)
{
NULL_CHECK (threads);
using namespace java::lang;
- Thread *thr = Thread::currentThread ();
ThreadGroup *root_grp = ThreadGroup::root;
jint estimate = root_grp->activeCount ();
// Allocate some extra space since threads can be created between calls
try
{
- thr_arr
- = reinterpret_cast<JArray<Thread *> *> (JvNewObjectArray
- ((estimate * 2),
- &Thread::class$, NULL));
+ thr_arr = reinterpret_cast<JArray<Thread *> *> (JvNewObjectArray
+ ((estimate * 2),
+ &Thread::class$, NULL));
}
catch (java::lang::OutOfMemoryError *err)
{