Rescue exceptions from Tempfile#closed? in LeakChecker (#16549)
ObjectSpace.each_object(Tempfile) can find partially-constructed Tempfile objects where @delegate_dc_obj is not yet set (between ivar initialization and the super() call in Tempfile#initialize)....
ZJIT: Document that SideExitRecompile::argc does not include receiver
ZJIT: Add TODO for handle_event state machine on invalidate_iseq_version
ZJIT: Count profiles remaining down instead of up
Count down from --zjit-num-profiles to 0 instead of counting up. This avoids reading options state in done_profiling_at and profile_send_at at check time. Also simplify the stack offset arithmetic in profile_send_at: -1 - (n - i - 1) simplifies to (i - n).
ZJIT: Unify invalidation logic into invalidate_iseq_version()
Extract the duplicated invalidation + JIT-to-JIT call recompilation logic from both PatchPoint handling and no-profile-send recompilation into a single invalidate_iseq_version() function. This is a starting...
ZJIT: Recompile ISEQs with no-profile sends via exit profiling
When a send instruction has no profile data (e.g., the code path was not reached during interpreter profiling), the first JIT compilation converts it to a SideExit that profiles operands on exit. After...
Copy allocator to subclasses at boot and on change
Copy the allocator from superclass to subclass at class creation time, so rb_get_alloc_func no longer needs to walk the ancestor chain.
This expands on 68ffc8db088a7b29613a3746be5cc996be9f66fe, which did this...
Don't allow RCLASS_ALLOCATOR on a singleton
Don't pass singleton to TypedData_Make_Struct
We should never initialize a class with an existing singleton class (singleton classes definitionally should not be shared).
The only cases this happened in Ruby itself is methods, which exposes a bug that dup did not behave correctly.
[ruby/rubygems] Check happy path first when comparing gem version:
During resolution, Gem::Version are compared against each other. Since comparing versions is a very hot path we can micro optimize it to check the happy path first.
The speed gain on the overall resolution isn't significant but the...
View all revisions | View revisions
Also available in: Atom