CDV ❯ potential race condition with resolveAllReferences() and the client memory manager
-
Bug
-
Status: Closed
-
3 Minor
-
Resolution: Fixed
-
DSO:L1
-
-
hhuynh
-
Reporter: teck
-
February 20, 2007
-
0
-
Watchers: 0
-
April 02, 2009
-
July 09, 2007
Description
The call made to resolveAllReferences before clone() is invoked, so that clone() will not see unresolved field values. Unforrunately there is a race condition with the memory manager. If the memory manager clears references before clone finishes, the cloned object might get bum field values.
The fix is probably to hold the resolve lock for the duration of the clone() call
Comments
Fiona OShea 2007-02-22
Fiona OShea 2007-07-11
can yo verify that this is fixed?
Steve thinks you are right, re: holding the resolve lock. If you have time in Moraga to fix, do so, but it is a low priority.