https://github.com/wang384670111/incubator-teaclave-sgx-sdk/blob/780dc8999477244d8ff1e6f418321adbec51ee58/sgx_tstd/src/panicking.rs#L288
I think the use of ordering here is irregular, FIRST_PANIC is used here for 
Signals in a multi-threaded environment, not to synchronize access to other 
shared variables. Although Ordering::SeqCst ensures the correctness of the 
program, it affects the performance of the program. Therefore, just 
Ordering::Relaxed needs to be used here to ensure the correctness of the 
program.
You can view, comment on, or merge this pull request online at:

  https://github.com/apache/incubator-teaclave-sgx-sdk/pull/427

-- Commit Summary --

  * midified atomic::ordering about FIRST_PANIC

-- File Changes --

    M sgx_tstd/src/panicking.rs (2)

-- Patch Links --

https://github.com/apache/incubator-teaclave-sgx-sdk/pull/427.patch
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/427.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/427
You are receiving this because you are subscribed to this thread.

Message ID: <apache/incubator-teaclave-sgx-sdk/pull/4...@github.com>

Reply via email to