[erlang-questions] FreeBSD cpu topology detection

Peer Stritzinger peerst@REDACTED
Sat Oct 25 17:48:56 CEST 2014


On 2014-10-19 15:37:11 +0000, Paul Guyot said:
> 
> I am amazed that the parser is written (which I authored) instead of 
> being debugged… I don't mean it's exceptional code, and it actually 
> needed more love and especially tests…
> 
> The issue is not FreeBSD 10 but rather FreeBSD 10's default compiler 
> (clang). There was a bug in this code with an undefined behavior. Older 
> versions of gcc (which we use) behave as expected by the code, while 
> clang and gcc devel (4.9) do not (only gcc 4.9 warns about it).

I can confirm that  erlang:system_info(cpu_topology) works as 
advertized on FreeBSD 8.0 and 8.2 (any Erlang version I have installed)

Cheers
-- Peer





More information about the erlang-questions mailing list