Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-11-19
03:12 • Ticket [1061016fff] Lock-free memory allocation status still Open with 5 oth... artifact: 31b94e239f user: elfring
03:12 • Open ticket [1061016fff]. artifact: 67d72d0fc7 user: elfring
2004-11-18
01:10 • Pending ticket [1061016fff]. artifact: 04fc516f94 user: hobbs
2004-11-05
15:27 • New ticket [1061016fff]. artifact: d2184d7089 user: elfring

Lock-free memory allocation

Open1061016fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-11-05 15:27:14
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
hobbsplain2004-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 Open ticket [1061016fff]. [History diff]2004-11-19 03:12:36
elfringplain2004-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?
Log in (anonymous is fine) to add a comment.