[kaffe] CVS kaffe (guilhem): putHeavyLock slight boost.

Kaffe CVS cvs-commits at kaffe.org
Wed Dec 28 11:14:29 PST 2005


PatchSet 7062 
Date: 2005/12/28 19:05:52
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
putHeavyLock slight boost.

        * kaffe/kaffevm/locks.c
        (putHeavyLock): Do not atomic ops for hlockHolder as
        it is not necessary.

Members: 
	ChangeLog:1.4581->1.4582 
	kaffe/kaffevm/locks.c:1.68->1.69 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4581 kaffe/ChangeLog:1.4582
--- kaffe/ChangeLog:1.4581	Wed Dec 28 01:49:44 2005
+++ kaffe/ChangeLog	Wed Dec 28 19:05:52 2005
@@ -1,3 +1,9 @@
+2005-12-28  Guilhem Lavaux  <guilhem at kaffe.org>
+
+	* kaffe/kaffevm/locks.c
+	(putHeavyLock): Do not atomic ops for hlockHolder as
+	it is not necessary.
+
 2005-12-27  Dalibor Topic  <robilad at kaffe.org>
 
 	config/alpha/atomic.h,
Index: kaffe/kaffe/kaffevm/locks.c
diff -u kaffe/kaffe/kaffevm/locks.c:1.68 kaffe/kaffe/kaffevm/locks.c:1.69
--- kaffe/kaffe/kaffevm/locks.c:1.68	Sun Dec 25 20:40:33 2005
+++ kaffe/kaffe/kaffevm/locks.c	Wed Dec 28 19:05:54 2005
@@ -203,7 +203,7 @@
 
   assert(lk->in_progress == 1);
   
-  atomic_exchange_acq(&(lk->hlockHolder), NULL);
+  lk->hlockHolder = NULL;
   atomic_exchange_acq(&(lk->in_progress), 0);
   if (lk->num_wait != 0)
     KSEM(put)(&(lk->sem));




More information about the kaffe mailing list