diff options
| author | Konstantinos Andrikopoulos <andrikopoulos@google.com> | 2024-07-20 11:28:48 +0200 |
|---|---|---|
| committer | Konstantinos Andrikopoulos <andrikopoulos@google.com> | 2024-07-24 12:10:05 +0200 |
| commit | a0088d7a813a1f63e5af4d6edc5d2c50a0b3702e (patch) | |
| tree | 3b682c3656192d814d8aca44da9b7c7e8b97c1e6 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 0b22f0c13d3151622200c62726600f1a805ac37e (diff) | |
| download | rust-a0088d7a813a1f63e5af4d6edc5d2c50a0b3702e.tar.gz rust-a0088d7a813a1f63e5af4d6edc5d2c50a0b3702e.zip | |
Allow getpid in isolation mode, add gettid support
In order to support gettid when isolation is enabled and when it is disabled, and satisfy its requirement that: In a single-threaded process, the thread ID is equal to the process ID (PID, as returned by getpid(2)). we define the thread ID to be getpid() + <miri internal thread id>. Since the internal thread id of the main thread is zero, this will satisfy that requirement. However, getpid for now was only supported when isolation was disabled. To support getpid in isolation mode, we return a hardcoded value (1000) and return that instead of the real PID.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
