Tcl Source Code

View Ticket
Login
Ticket UUID: 1061016
Title: Lock-free memory allocation
Type: RFE Created on: 2004-11-05 15:27:14
Submitter: elfring Assigned to: hobbs
Subsystem: 41. Memory Allocation Severity:
Priority: 5 Medium Last modified: 2004-11-19 03:12:37
Status: Open Closed by: hobbs
Resolution: Later Closed on: 2004-11-17 18:10:16
Version: None
Description:
Is your memory allocator lock-free already?
http://tcl.tk/man/tcl8.5/TclLib/Alloc.htm

Would you like to use the algorithms that are 
described in this paper?
"Scalable Lock-Free Dynamic Memory Allocation" by 
Maged M. Michael
http://www.research.ibm.com/people/m/michael/pldi-
2004.pdf
User Comments:
hobbs added on 2004-11-18 01:10:16:
Logged In: YES 
user_id=72656

Do you have indications that the allocator isn't lock-free?
 One of the reasons we have our own allocator for the
threaded build is that it avoids most locks, and is thus
much faster.  This was provided to the core by AOL.  You can
see some speed results here: http://wiki.tcl.tk/3291

elfring added on 2004-11-19 03:12:37:
Logged In: YES 
user_id=572001

I have not seen any documentation for this fact so far.
I guess that the avoidance of "most" locks does not mean "lock-free".

Would you like to try Maged's allocator?