News for hackers. Stuff that matters.
Re:System.Linq.Parallel Is Now Open Source by NKCSS on Wednesday December 03, 2014 @02:47AM (#8692420)
Hmm, I wonder why this was added:

    #if DEBUG
                    currentKey = unchecked((int)0xdeadbeef);
    #endif
https://github.com/dotnet/corefx/blob/master/src/System.Linq... line 110 :P
Re:System.Linq.Parallel Is Now Open Source by Someone on Wednesday December 03, 2014 @06:48AM (#8693178)
It is a magic marker http://en.wikipedia.org/wiki/Magic_number_%28programming%29#....

Both its 16-bit parts have odd values, it is an illegal address (at least on the systems it was introduced for), and it is recognizable in hex dumps. That makes it a good value for uninitialized memory.

Re:System.Linq.Parallel Is Now Open Source by Demiurge on Wednesday December 03, 2014 @03:26AM (#8692513)
looks like a marker to see if the code got past two previous lines?
Re:System.Linq.Parallel Is Now Open Source by gbvb on Wednesday December 03, 2014 @05:58AM (#8692998)
It seems to be to avoid using currentKey inadvertently. If someone refers it elsewhere they get deadbeef.