[nem-bug] [Nemerle 0000927]: Memoize isn't thread-safe
feedback at nemerle.org
feedback at nemerle.org
Fri Mar 2 11:55:39 CET 2007
The following issue has been ASSIGNED.
======================================================================
<http://nemerle.org/bugs/view.php?id=927>
======================================================================
Reported By: divan
Assigned To: divan
======================================================================
Project: Nemerle
Issue ID: 927
Category: The Macro Library
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 02-20-2007 21:38 CET
Last Modified: 03-02-2007 11:55 CET
======================================================================
Summary: Memoize isn't thread-safe
Description:
1)Reads are not protected with lock.
That is while one thread writes to cache no thread must read from it
(Hashtable isn't thread-safe)
I think ReaderWriterLock should be used
2)Possibly cache creation have to be protected too
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
02-20-07 21:38 divan New Issue
03-02-07 11:55 divan Status new => assigned
03-02-07 11:55 divan Assigned To => divan
======================================================================
More information about the bugs
mailing list