Jump to content

  • Log In with Google      Sign In   
  • Create Account


The Bag of Holding



Concurrent programming bug - the solution

Posted by ApochPiQ, 04 February 2013 · 709 views

In my last post  I outlined a bug that recently bit me in a reference-counting mechanism in a concurrent system.If you haven't solved the mystery yet, here's some hints from common guesses I've seen from various people:The reference count is implemented using atomic intrinsics.Atomicity and alignment are proven correct for the platform in question.Mutual...


Concurrent programming is hard, mmmkay?

Posted by ApochPiQ, 01 February 2013 · 851 views

Here's a fun bug that I've had in one of my projects for quite some time, which I finally figured out and fixed today.As with most bugs of this nature, it took dozens of readings through the code to spot it, and by the time I finally realized what I'd done, I felt incredibly stupid. In hindsight it's bloody obvious, but it highlights exactly the kind of m...





February 2013 »

S M T W T F S
     12
3456789
10111213141516
17181920212223
2425262728  
PARTNERS