[kaffe] CVS kaffe (guilhem): Clean up debug mode with pthreads.
Kaffe CVS
cvs-commits at kaffe.org
Thu Oct 14 05:51:49 PDT 2004
PatchSet 5286
Date: 2004/10/14 12:47:59
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Clean up debug mode with pthreads.
* kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
(tDump): Removed unaccessible debugging information (will be readded
later).
Removed unused occurrences of iLockRoot.
Members:
ChangeLog:1.2838->1.2839
kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.45->1.46
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2838 kaffe/ChangeLog:1.2839
--- kaffe/ChangeLog:1.2838 Thu Oct 14 11:12:06 2004
+++ kaffe/ChangeLog Thu Oct 14 12:47:59 2004
@@ -1,3 +1,10 @@
+2004-10-14 Guilhem Lavaux <guilhem at kaffe.org>
+
+ * kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
+ (tDump): Removed unaccessible debugging information (will be readded
+ later).
+ Removed unused occurrences of iLockRoot.
+
2004-10-14 Helmer Kraemer <hkraemer at freenet.de>
* libraries/clib/native/System.c (java_lang_System_initProperties):
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.45 kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.46
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.45 Tue Oct 12 19:55:59 2004
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c Thu Oct 14 12:48:02 2004
@@ -218,13 +218,6 @@
{
DBG(JTHREAD, {
jthread_t cur = jthread_current();
- void *lock = tLock.lock;
- void *holder = tLock.heavyLock.holder;
- void *mux = tLock.heavyLock.mux;
- //void *muxNat = tLock.heavyLock.mux ? unhand(tLock.heavyLock.mux)->PrivateInfo : 0;
- void *cv = tLock.heavyLock.cv;
- //void *cvNat = tLock.heavyLock.cv ? unhand(tLock.heavyLock.cv)->PrivateInfo : 0;
- int iLockRoot;
protectThreadList(cur);
@@ -232,12 +225,6 @@
dprintf("state: nonDaemons: %d, critSection: %d\n",
nonDaemons, critSection);
- /*
- dprintf("tLock: %p [holder: %p, mux: %p (native: %p), cv: %p (native: %p)]\n",
- lock, holder, mux, muxNat, cv, cvNat);
- */
- dprintf("tLock: %p [holder: %p, mux: %p, cv: %p]\n",
- lock, holder, mux, cv);
dprintf("active threads:\n");
tDumpList( cur, activeThreads);
@@ -655,7 +642,6 @@
jthread_t t;
size_t ss;
int oldCancelType;
- int iLockRoot;
/* get the stack boundaries */
pthread_attr_getstacksize( &cur->attr, &ss);
@@ -767,7 +753,6 @@
jthread_t cur = jthread_current();
jthread_t nt;
struct sched_param sp;
- int iLockRoot;
/* if we are the first one, it's seriously broken */
assert( activeThreads != 0 );
@@ -917,7 +902,6 @@
{
jthread_t cur = jthread_current();
jthread_t t;
- int iLockRoot;
/*
* We are leaving the thread user func, which means we are not
* subject to GC, anymore (has to be marked here because the first thread
@@ -1154,7 +1138,6 @@
int status;
jthread_t cur = jthread_current();
volatile jthread_t t;
- int iLockRoot;
/* don't allow any new thread to be created or recycled until this is done */
protectThreadList(cur);
@@ -1235,7 +1218,6 @@
jthread_t cur = jthread_current();
jthread_t t;
int status;
- int iLockRoot;
if ( !critSection )
return;
More information about the kaffe
mailing list