Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" Newsgroups: comp.arch Subject: Strange asm generated by GCC... Date: Thu, 19 Dec 2024 16:43:46 -0800 Organization: A noiseless patient Spider Lines: 34 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 20 Dec 2024 01:43:47 +0100 (CET) Injection-Info: dont-email.me; posting-host="90d0359d260b5ab20f7104a3aa6ad836"; logging-data="3256991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2KAZ3iPzLkNg2828GpEFvZ8+JkTVIbrM=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:NqeolGRxoFzu21tdrNOfAPjRRwo= Content-Language: en-US Bytes: 1584 Why in the world would GCC use an XCHG instruction for the following code. The damn XCHG has an implied LOCK prefix! Yikes! https://godbolt.org/z/Thxchdcr8 _______________________ #include int main() { std::atomic m_state = 0; m_state.store(std::memory_order_relaxed); return 0; } _______________________ Here is the generated ASM: _______________________ main: mov QWORD PTR [rsp-8], 0 xor eax, eax xchg rax, QWORD PTR [rsp-8] xor eax, eax ret _______________________ WTF!!!!!!!!