[kaffe] locks patch

Helmer Krämer hkraemer at freenet.de
Tue Jul 1 13:32:01 PDT 2003


I've attached a small patch that fixes some issues
related to the handling of locks in kaffe. Review
and comments appreciated ;)

Stuff contained in the patch:

* the specialLocks array is removed; special locks whose heavyLock
  should not be gc_malloc'ed are now of type struct _iStaticLock,
  which contains a struct _iLock field. 
* _slowUnlockMutex correctly handles !STACK_GROWS_UP
* _slowUnlockMutexIfHeld no longer allocates a heavyLock if that's
* _releaseLock and _acquireLock have been removed since they don't
  seem to be used anywhere
* _lockMutex uses jthread_on_current_stack to detect recursive

-------------- next part --------------
A non-text attachment was scrubbed...
Name: locks-patch
Type: application/octet-stream
Size: 26985 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030701/55377314/attachment-0002.obj 

More information about the kaffe mailing list