diff options
author | Matthew Draper <[email protected]> | 2023-08-24 17:53:23 +0930 |
---|---|---|
committer | John Hawthorn <[email protected]> | 2023-09-07 13:51:15 -0700 |
commit | aed52151043561dbe9657abd07f1abfcd97df817 (patch) | |
tree | 91ed5b5679fb99d5b2bcc187f59262d98b76fcb5 /shape.h | |
parent | ed712e0e9d591bdaa84e9eaac832a9632aee5139 (diff) |
Optimize handle_interrupt(Exception => ..) as a common case
When interrupt behavior is configured for all possible exceptions using
'Exception', there's no need to iterate the pending exception's
ancestors for hash lookups.
More significantly, by storing the catch-all timing symbol directly in
the mask stack, we can skip allocating the hash we would otherwise need.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8278
Diffstat (limited to 'shape.h')
0 files changed, 0 insertions, 0 deletions