René's URL Explorer Experiment


Title: lock: add an opt-in rwlock that detaches before it blocks by youknowone · Pull Request #8556 · RustPython/RustPython · GitHub

Open Graph Title: lock: add an opt-in rwlock that detaches before it blocks by youknowone · Pull Request #8556 · RustPython/RustPython

X Title: lock: add an opt-in rwlock that detaches before it blocks by youknowone · Pull Request #8556 · RustPython/RustPython

Description: Stopping the world means waiting for every running thread to reach a safepoint. A thread blocked acquiring a lock reaches none, so a thread that waits for a lock while attached is a thread the world cannot stop for as long as it waits. What changed RawDetachingRwLock wraps the raw rwlock and hands the wait for a contended acquire to a hook that leaves the interpreter first. An acquire that takes the lock on its first try is the same atomic exchange it was. The hook lives in the vm, since rustpython-common cannot depend on it, and runs allow_threads; initialize_vm installs it, idempotently, so every interpreter in a process can call it. Nothing spins before the wait. parking_lot already spins before it parks and already skips that spin once a waiter has parked — state & (PARKED_BIT | WRITER_PARKED_BIT) == 0 && spinwait.spin(), the same condition _PyMutex_LockTimed spins under. A spin layered on top cannot read that condition, and would go on retrying a try_lock that reports failure for as long as a writer holds WRITER_BIT, which it takes before it waits for readers to drain. An earlier revision of this PR had one; measured against bytearray contention (reader/writer mixes, short and long holds, alternating binaries) it was a wash in both directions, so it is gone. PyByteArray::inner is the first user. BorrowedValue/BorrowedValueMut gain the matching mapped-guard variants. Only lock_shared and lock_exclusive detach. upgrade runs with the upgradable lock already held and lock_shared_recursive may be the re-entrant take of a lock this thread holds; detaching there parks a thread holding the lock. lock_upgradable starts from holding nothing and could detach safely, but nothing takes an upgradable read of one of these, so it does not. Why this is opt-in The wait ends with the lock acquired while detached, so the thread comes back holding it — and re-attaching is a point at which a stop-the-world in flight parks it. Everything that stops the world must therefore be able to finish without that lock, so the rule for opting a lock in is that nothing reachable from a stop-the-world section takes it. Not implementing Traverse for PyDetachingRwLock states that to a collection: a payload holding one cannot derive Traverse, so a collection cannot walk into it. It says nothing to the other sections — dumping tracebacks, enumerating thread frames, forking — and #[pytraverse(skip)] steps around it besides. So the rule is also an assertion. set_world_stopped records, on the one thread still running inside a stopped world, that it is that thread, and the blocking acquires assert it is not set. Debug builds only. Nothing in the tree trips it: 180 rounds of collect, sys._current_frames, faulthandler.dump_traceback and 18 forks with four threads churning bytearrays, all clean. Also here: the sites that still waited badly os.readinto held the destination's write lock for the whole call, including the read(2) inside allow_threads. On a pipe, socket or terminal that read returns only when the other end writes, so another thread reaching the same object waited on that lock for an unbounded time. It now reads into scratch and takes the lock only for the copy, unless the fd answers without waiting — which is what FileIO.readinto, socket.recv_into and socket.recvfrom_into already do. os.readinto was the site left over. fcntl ran every one of its calls with the thread attached, so a thread inside one reached no safepoint until it returned — and flock(LOCK_EX) and lockf(F_LOCK) return when whoever holds the lock gives it up, which may be never. fcntl_fcntl_impl, fcntl_ioctl_impl, fcntl_flock_impl and fcntl_lockf_impl all release around the call; these now do too. ioctl with mutate_flag also held the target's write lock for the whole call, and now copies through a buffer of its own, as fcntl_ioctl_impl does for anything up to IOCTL_BUFSZ. SSLSocket.read on the openssl backend wrote straight into the destination, holding its lock until the peer answered. It reads aside and takes the lock for the copy, which is what the rustls backend already does. The openssl backend's SSL calls ran attached. With a timeout set the wait lands in select → sock_wait, which already detaches; with settimeout(None) there is no such return and SSL_read blocks in recv(2) through impl Read for &PySocket, holding the connection's write lock. A server that finished a handshake and then said nothing deadlocked the whole process — the collector suspended the main thread at a safepoint and then waited forever for the reader, so even a Python-level timeout could not fire. SSL_do_handshake, SSL_read_ex, SSL_write_ex and SSL_shutdown now detach as they do in _ssl.c, and the connection lock becomes a detaching one since it stays held across the call. That collection now completes in 3 ms. Detaching there means the SSL callbacks — _servername_callback, _msg_callback — would run Python on a thread the requester counts as parked, so they attach first. _servername_callback opens with PyGILState_Ensure() for the same reason. The vm had no inverse of allow_threads to mirror it with, so attach_for_callback is new: it attaches for the closure and returns the thread to where it was, and routes a thread already moved to SUSPENDED through attach_thread so it parks until the world starts again. That is worth being explicit about, because it narrows what this PR is for. The earlier _queue/_thread/_io/_winapi work already closed the holders that kept an object lock across a blocking call, and os.readinto was the last one; FileIO.write and socket.send* copy through borrow_buf_unlocked, FileIO.readinto and socket.recv_into read into scratch. So what remains for the detaching lock is waiters blocked behind a bounded hold, not the unbounded holds the holder fixes removed. Tests a_thread_blocked_on_a_lock_does_not_stall_stop_the_world holds a PyDetachingRwLock, blocks an interpreter thread on it, and asserts stop-the-world still completes. It runs the stop on a thread of its own with a timeout, so a stop that never completes fails the test rather than hanging it. With the hook installation commented out it fails on the 10 s timeout; with it, it passes in 0.07 s. a_callback_inside_a_detached_call_waits_for_the_world stops the world with a thread detached, turns that thread loose at a callback and asserts it does not run until the world starts again. With the transition disabled it fails. taking_one_while_stopping_the_world_is_caught takes a detaching lock with the stopped-world flag set and asserts the panic, so that guard is not dead code. Run locally: the full workspace test command, CI clippy for the rustls and openssl feature sets, cargo doc (no new warnings), a bytearray/memoryview stress across 8 threads with 2 concurrent gc.collect() loops, os.readinto checked against CPython on a regular file, a pipe, a short buffer and a memoryview target, and test_fcntl test_ioctl test_os test_posix test_fileio test_bytes test_memoryview test_threading test_io test_gc test_buffer test_ssl test_asyncio (46/46 files, 4,986 tests, on the rustls backend). Every commit was checked to build on its own. The openssl backend is not built in CI. Built here: test_ssl fails the same 8 tests before and after, by name; openssl.rs draws no clippy warning it did not draw before; 40 handshakes with a Python _msg_callback firing from inside them under a looping collector, 920 callback invocations, five runs clean. Not done here _PyRWMutex acquires after re-attaching — rwmutex_set_parked_and_wait parks detached, and the retry loop in _PyRWMutex_RLock takes the lock once the thread is back — so no thread is ever parked holding one. Mirroring that would mean a raw rwlock built on parking_lot_core rather than wrapping parking_lot, and it would not lift the opt-in rule anyway: a holder inside allow_threads is parked holding the lock too, and that path is untouched by how waiters acquire. Closing that path is what _PyCriticalSection_SuspendAll does: detach_thread unlocks every critical section the thread holds and attaching resumes them, so no object lock is ever held across a detached window and no opt-in rule is needed. That cannot be mirrored here. These locks hand out borrow-checked references — a guard derefs to &T/&mut T — so releasing the raw lock while a guard is alive would let another thread produce an aliasing &mut T. Py_BEGIN_CRITICAL_SECTION hands out no borrow and requires state to be re-read after resume, which is what buys CPython the freedom. The Rust form of the same invariant is not holding the guard across the call, which is what borrow_buf_unlocked, the scratch copies above and os.readinto do, with the detaching lock for the places where it genuinely must be held. Neither ssl nor openssl calls allow_threads, but only one of them needs to. The rustls backend performs no blocking I/O of its own: it reaches the socket through the Python socket methods, and sock_io and sock_wait_deadline already detach around the syscall and the poll. What rustls itself does — read_tls from a Cursor, process_new_packets — is in-memory work. The openssl backend does block attached, but only when the socket is in blocking mode. With a timeout set, PySocket is O_NONBLOCK, SSL_read returns WANT_READ, and the wait lands in select → sock_wait, detached. With settimeout(None) there is no such return: SSL_read blocks in recv(2) through impl Read for &PySocket, attached, holding self.connection.write(). Fixing it is not a wrap, because _servername_callback and _msg_callback run Python from inside the SSL call — _servername_callback opens with PyGILState_Ensure() for exactly that reason, and this vm has no public inverse of allow_threads to mirror it with. That primitive comes first. Summary by CodeRabbit New Features Blocking file-control, I/O, and OpenSSL operations now release the interpreter while waiting, improving responsiveness in threaded applications. Python callbacks invoked during detached operations safely resume with the correct interpreter context. Bytearray and buffer operations now support improved concurrent access. Bug Fixes Improved handling of blocking reads and mutable buffers, including safer data copying during system calls. Thread coordination remains reliable during stop-the-world pauses and process-fork resets. Attribute lookups now better preserve custom object behavior while correctly handling missing attributes.

Open Graph Description: Stopping the world means waiting for every running thread to reach a safepoint. A thread blocked acquiring a lock reaches none, so a thread that waits for a lock while attached is a thread the worl...

X Description: Stopping the world means waiting for every running thread to reach a safepoint. A thread blocked acquiring a lock reaches none, so a thread that waits for a lock while attached is a thread the worl...

Opengraph URL: https://github.com/RustPython/RustPython/pull/8556

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0b559602-4e5e-4b20-65d6-b6342b251bfd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8DD8:29FFA9:3A572BF:49DE694:6B01F7B2
html-safe-nonce29d65899714bb7dad7b6ee35836b088ced5daf804c9bc50b3b15c841af24626c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REQ4OjI5RkZBOTozQTU3MkJGOjQ5REU2OTQ6NkIwMUY3QjIiLCJ2aXNpdG9yX2lkIjoiNjM0MDU0MzIzNDU2MDg4MjYxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacaffd27850a03c50b6530f3684627f727448dab49f9d0900daab40357b01efd4c
hovercard-subject-tagpull_request:4310642235
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/8556/files
twitter:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
og:image:altStopping the world means waiting for every running thread to reach a safepoint. A thread blocked acquiring a lock reaches none, so a thread that waits for a lock while attached is a thread the worl...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/8556/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8556%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8556%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/8556/files
Reloadhttps://github.com/RustPython/RustPython/pull/8556/files
Reloadhttps://github.com/RustPython/RustPython/pull/8556/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:lock-detach-on-contentionhttps://github.com/youknowone/RustPython/tree/lock-detach-on-contention
Conversation 9 https://github.com/RustPython/RustPython/pull/8556
Commits 15 https://github.com/RustPython/RustPython/pull/8556/commits
Checks 26 https://github.com/RustPython/RustPython/pull/8556/checks
Files changed https://github.com/RustPython/RustPython/pull/8556/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8556/files
lock: add an opt-in rwlock that detaches before it blocks https://github.com/RustPython/RustPython/pull/8556/files#top
Show all changes 15 commits https://github.com/RustPython/RustPython/pull/8556/files
c422c9a lock: add an opt-in rwlock that detaches before it blocks youknowone Aug 19, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/c422c9a72ffc981afb9147c5bf287a345b0e6df9
25639de lock: stop detaching where the lock may already be held youknowone Aug 19, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/25639de8582646d80a904a9206488dd939668a61
72289fb os.readinto: read aside when the fd can wait youknowone Aug 19, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/72289fbd29241bcde7ce0f6306cf5d5623462945
1414831 fcntl: detach around the calls that wait youknowone Aug 19, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/14148310a89ab3bdfab4ca7c25d08a9791c078db
11b53f1 openssl: read aside instead of holding the caller's buffer locked youknowone Aug 19, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/11b53f1a1614da0d5e7d87700e0932d846979629
02a4b48 vm: add the inverse of allow_threads for callbacks youknowone Aug 21, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/02a4b488164c265cef12d2637c344bffefc5c080
707b7c4 openssl: attach around the callbacks that run Python youknowone Aug 21, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/707b7c420125e8504a7a424216e0d8730af88656
ce8a00c openssl: detach around the SSL calls that wait youknowone Aug 21, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/ce8a00c64f1d700c2a7ea7c0c1a55e888fb0bda8
5f2e1ea lock: assert the opt-in rule against every stop-the-world section youknowone Aug 21, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/5f2e1ea2d94fc9c4b3652b003bf2e58df544b967
f6c27e7 clippy: drop std_instead_of_core suppressions youknowone Aug 21, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/f6c27e7b4c0cda82e88ee35c8e266c0a9f8462f0
c2af8b6 lock: spell out why the detaching rwlock exists youknowone Aug 21, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/c2af8b69ff708f658a222891ff86b2637ffd12e1
657964b fcntl: raise the error the call returned youknowone Aug 27, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/657964b9eff05ed7c138e79e3ab563fb55e811aa
45331ef openssl: allocate the read buffer through the vm youknowone Aug 27, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/45331ef151fcdc3b731a8f6f91edca54c2fd73ed
809b7fd lock: leave no attached blocking acquire on a detaching lock youknowone Aug 27, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/809b7fd89dd9c8ecd32a17aa60047ae55db961e9
b0f5467 vm: wait for the actual block in the stop-the-world test youknowone Aug 27, 2026 https://github.com/RustPython/RustPython/pull/8556/commits/b0f546754d93ef13e7c7120b624ed5bffc460a6a
Clear filters https://github.com/RustPython/RustPython/pull/8556/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8556/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8556/files
Cargo.toml https://github.com/RustPython/RustPython/pull/8556/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
borrow.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
lock.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-b4ac76d8c569b4361eb898d5fab3b1d7d8d5c3b4f66c1e80504a42af7119075c
detaching.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-011bc712ab90b3d2239e3c6d4fd69a3437f03e812e639a6e94aa5208d50df172
fcntl.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-f24367c76fe0e3702bd85e14b9945f6f8c41d182a5775da079341204fd5e2f5f
openssl.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-f66827d3199bc9476282bcbb77615622c5ef8eca6515c5671b29d39577333390
bytearray.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-bd8962db12555ddc9945c543b57069611c9b3f24f133fbf3a76c7c60fe1cfddd
os.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-3a1b2246dc47369778bf6889ee62be670eee468a599dee319ca981ead50d686a
interpreter.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
mod.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-fe30ecf7c6b462e46e0874a55a05ea0edba83cefad5ac7a86e7137fa8f86ba74
thread.rs https://github.com/RustPython/RustPython/pull/8556/files#diff-0bfe10fdb30f1f6c60e31b36e738b86cd68863aeb8113c4c1eadec33e90caf8d
Cargo.tomlhttps://github.com/RustPython/RustPython/pull/8556/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
View file https://github.com/youknowone/RustPython/blob/b0f546754d93ef13e7c7120b624ed5bffc460a6a/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8556/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8556/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/RustPython/RustPython/pull/8556/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
crates/common/src/borrow.rshttps://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
View file https://github.com/youknowone/RustPython/blob/b0f546754d93ef13e7c7120b624ed5bffc460a6a/crates/common/src/borrow.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8556/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
https://github.com/RustPython/RustPython/pull/8556/files#diff-ff1a9221cd14f789100309da0c93b30c36b58c0fc5fcde168c5e6d747b1875f7
crates/common/src/lock.rshttps://github.com/RustPython/RustPython/pull/8556/files#diff-b4ac76d8c569b4361eb898d5fab3b1d7d8d5c3b4f66c1e80504a42af7119075c
View file https://github.com/youknowone/RustPython/blob/b0f546754d93ef13e7c7120b624ed5bffc460a6a/crates/common/src/lock.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8556/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8556/files#diff-b4ac76d8c569b4361eb898d5fab3b1d7d8d5c3b4f66c1e80504a42af7119075c
https://github.com/RustPython/RustPython/pull/8556/files#diff-b4ac76d8c569b4361eb898d5fab3b1d7d8d5c3b4f66c1e80504a42af7119075c
https://github.com/RustPython/RustPython/pull/8556/files#diff-b4ac76d8c569b4361eb898d5fab3b1d7d8d5c3b4f66c1e80504a42af7119075c
https://github.com/RustPython/RustPython/pull/8556/files#diff-b4ac76d8c569b4361eb898d5fab3b1d7d8d5c3b4f66c1e80504a42af7119075c
https://github.com/RustPython/RustPython/pull/8556/files#diff-b4ac76d8c569b4361eb898d5fab3b1d7d8d5c3b4f66c1e80504a42af7119075c
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8556/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8556/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.