[Asterisk-Dev] potentially nasty bugs in string pools usage
Andrew Kohlsmith
akohlsmith-asterisk at benshaw.com
Sun Jan 8 17:38:12 MST 2006
On Sunday 08 January 2006 13:59, steve at daviesfam.org wrote:
> I worked on an OS once that used to move memory around under your feet in
> some circumstances. It was all documented, but sheesh, it was a pain.
Ahh glorious PalmOS.
> Retrofitting that behaviour underneath all the existing code is a daunting
> idea.
It honestly wasn't that bad. If you had the lock on the memory area, you were
safe. If you didn't have the lock, you simply used the new pointer obtained
when you grabbed it again. Not really all that different from standard
locking issues in a concurrent-access environment.
-A.
More information about the asterisk-dev
mailing list