in reply to Re^9: is ||= threadsafe?
in thread is ||= threadsafe?
Here and now.
Update: Ah! So I wasn't "playing dumb" when I asked you to demonstrate a segfault, because you hadn't "wasted enough time with [demonstrating] one". You hadn't--and indeed haven't, and never will have--demonstrated anything except your "dumb" speculations.
That is not a demonstration. Mearly speculation.
A demonstration of a segfault, requires some actual code that actually segfaults.
If you doubt this, try offering that speculation to p5p in a bug report.
Are you saying it does?
Yes. Perl internally locks all internal accesses to shared variable internals. See for yourself. Look for all the uses of the following two macros (amongst others):
#define SHARED_EDIT \ STMT_START { \ ENTER_LOCK; \ SHARED_CONTEXT; \ } STMT_END /* ... then switch out and release access. */ #define SHARED_RELEASE \ STMT_START { \ CALLER_CONTEXT; \ LEAVE_LOCK; \ } STMT_END
Even the merest modicum of rational thought would lead to the conclusion that this must be the case, and must have been the case from the very inception of ithreads, otherwise this place would have been inundated with segfault reports.
To the best of my knowledge, yes.
And there was me thinking I was the one with the ageing memory.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: is ||= threadsafe?
by ikegami (Patriarch) on Oct 25, 2010 at 16:00 UTC | |
by BrowserUk (Patriarch) on Oct 25, 2010 at 16:24 UTC | |
by ikegami (Patriarch) on Oct 25, 2010 at 17:08 UTC |