Files
rust/library/std/src
Guillaume Gomez 6df9df7e36 Rollup merge of #87236 - sunfishcode:avoid-locking-args, r=joshtriplett
Simplify command-line argument initialization on unix

Simplify Rust's command-line argument initialization code on unix:
 - The cleanup code isn't needed, because it was just zeroing out non-owning variables at runtime cleanup time. After 91c3eee173, Rust's command-line initialization code on unix no longer allocates `CString`s and a `Vec` at startup time.
 - The `Mutex` isn't needed; if there's somehow a call to `args()` before argument initialization has happened, the code returns return an empty list, which we can do with a null check.

With these changes, a simple cdylib that doesn't use threads avoids getting `pthread_mutex_lock`/`pthread_mutex_unlock` in its symbol table.
2021-07-19 11:37:45 +02:00
..
…
2021-06-13 14:00:15 -04:00
2021-06-13 14:00:15 -04:00
2021-06-30 20:28:51 +01:00
2021-07-10 12:59:25 -07:00
…
…
2021-07-12 15:01:39 +02:00
…
2021-07-17 18:31:51 -07:00
2021-07-10 14:14:09 +02:00
…
2021-05-19 15:52:09 +02:00
…
2021-06-23 16:26:46 -04:00
2021-06-25 13:18:56 -07:00
…
2021-07-18 18:30:58 -04:00
2021-06-22 10:20:56 +01:00
2021-06-19 11:46:56 +03:00
2021-06-23 16:26:46 -04:00