diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2023-03-02 16:21:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 16:21:05 -0500 |
commit | 34026afd0434fc482b2a6419ec6aeece07dcf52f (patch) | |
tree | 5114cfe00c280caa4648aa0c2af0f5d1aad3406e /yjit/src/asm/mod.rs | |
parent | a9f4e5cc6099f2b2f6202e5ac252edddc07492f8 (diff) | |
download | ruby-34026afd0434fc482b2a6419ec6aeece07dcf52f.tar.gz |
YJIT: Delete stale `frozen_bytes` related code (#7423)
The code and comments in there have been disabled by comments for a long
time. The issues that the counter used to solve are now solved more
comprehensively by "runningness" [tracking][1] introduced by Code GC
and [delayed deallocation][2].
Having a single counter doesn't fit our current model where code pages
that could be touched or not are interleaved, anyway.
Just delete the code.
[1]: e7c71c6c9271b0c29f210769159090e17128e740
[2]: a0b0365e905e1ac51998ace7e6fc723406a2f157
Diffstat (limited to 'yjit/src/asm/mod.rs')
-rw-r--r-- | yjit/src/asm/mod.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/yjit/src/asm/mod.rs b/yjit/src/asm/mod.rs index 7f95270b78..6da2e3a700 100644 --- a/yjit/src/asm/mod.rs +++ b/yjit/src/asm/mod.rs @@ -611,11 +611,6 @@ impl CodeBlock { // This currently patches every ISEQ, which works, but in the future, // we could limit that to patch only on-stack ISEQs for optimizing code GC. rb_yjit_tracing_invalidate_all(); - // When code GC runs next time, we could have reused pages in between - // invalidated pages. To invalidate them, we skip freezing them here. - // We free or not reuse the bytes frozen by any past invalidation, so this - // can be safely reset to pass the frozen bytes check on invalidation. - CodegenGlobals::set_inline_frozen_bytes(0); // Assert that all code pages are freeable assert_eq!( |