Skip to content

Relacy Race Detector

1024cores.net
23 pointsfavourable4 comments
On HN

Comments

This is from 2011 or possibly earlier. Since that was around the same time ThreadSanitizer came out, I wonder how similar the two approaches are? I know lots of people use TSan nowadays but I haven’t heard of anyone using Relacy

This seems like it could be very useful -- a bit like like Spin [1] but natively for C++. But I'm confused: Is this "just" a header-only library, as claimed? No runtime tool is needed on top? Also, what's with the ($) syntax? I didn't think $ was a valid C++ identifier (even though it can appear in mangled symbol names) -- will that code even compile?

[1] https://en.m.wikipedia.org/wiki/SPIN_model_checker

$ is a preprocessor macro

  #define RL_INFO ::rl::debug_info(__FUNCTION__, __FILE__, __LINE__)
  #define $ RL_INFO

Its list of supported platforms lists 32 bit but not 64 bit. And it refers to C++0x not C++11. I presume the article is old. Is this software still developed?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.