|
Message-ID: <tencent_38BCF80DB338A46040E1ECE710B8D1F8E507@qq.com> Date: Mon, 22 May 2023 09:53:05 +0800 From: "847567161" <847567161@...com> To: "musl" <musl@...ts.openwall.com> Subject: Re:Re: Re: Question:Why musl call a_barrier in __pthread_once? Hi >Besides it doesn't help your case. You wanted to remove the "dmb" >instruction right? Well, that code adds it if the compiler thinks it is >necessary, and GCC trunk for ARM does so: https://godbolt.org/z/WcrfTdTx5 I compared the implement between musl and bionic in assembly code, I see bionic don't generate 'dmb' with clang, you can also check in here, https://godbolt.org/z/hroY3cc4d So it has better performance in comman case which init function is done. So can we do any optimization here? Chuang Yin
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.