diff options
author | Matthew Draper <matthew@trebex.net> | 2023-08-24 17:53:23 +0930 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2023-09-07 13:51:15 -0700 |
commit | aed52151043561dbe9657abd07f1abfcd97df817 (patch) | |
tree | 91ed5b5679fb99d5b2bcc187f59262d98b76fcb5 /test/etc | |
parent | ed712e0e9d591bdaa84e9eaac832a9632aee5139 (diff) | |
download | ruby-aed52151043561dbe9657abd07f1abfcd97df817.tar.gz |
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.
Diffstat (limited to 'test/etc')
0 files changed, 0 insertions, 0 deletions