Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^3: is ||= threadsafe?

by ikegami (Pope)
on Oct 25, 2010 at 04:27 UTC ( #867132=note: print w/replies, xml ) Need Help??

in reply to Re^2: is ||= threadsafe?
in thread is ||= threadsafe?

segmentation fault, premature deallocation and segmentation fault (respectively) are serious problems in any scenario.

Replies are listed 'Best First'.
Re^4: is ||= threadsafe?
by BrowserUk (Pope) on Oct 25, 2010 at 04:56 UTC
    segmentation fault, premature deallocation and segmentation fault (respectively)

    I challenge you to demonstrate any one of those.

    And when you can't, come back and I'll explain why you can't.

      Well, a refcount increase is an increment, and increment operations aren't necessarily thread safe, so a refcount increase is not necessarily thread-safe.

      Update: Fixed unintentional misquote, used clearer wording

        x = x + 1, which you've already said isn't safe

        I never said that. I never implied that. For a start, what is "x"? It's not a perl variable is it. So it's just a meaningless equation.

        Do I need to demonstrate further,

        Yes. You need to demonstrate an actual segfault.

        Why. Because what you are suggesting is possible, is IMPOSSIBLE. IT CANNOT HAPPEN.

        Which makes your unfounded speculation: FUD. And, given that it is coming from you, a usually reliable and knowledgeable source, makes it dangerous and significant FUD. Possibly even deliberately malicious FUD.

        So please, demonstrate your good intent by either:

        1. demonstrating a segfault using one of your original three perl statements.
        2. withdrawing the FUD.

        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://867132]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2018-10-20 02:17 GMT
Find Nodes?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...

    Results (111 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!