Feature #9346
closed[PATCH] signal.c: avoid repeated disable/enable interrupt
Description
We only install system-level signal handlers during init (before any
threads or user code is running), so there's no need to repeatedly
enable/disable the interrupts at that time. We also do not change
system-level sig handlers once user-level code is running.
This saves about 20 syscalls at startup and makes the executable
smaller:
text data bss dec hex filename
before: 2716694 24350 154680 2895724 2c2f6c ruby
after: 2716150 24350 154680 2895180 2c2d4c ruby
$ git pull git://bogomips.org/ruby.git sig-intr-init
The following changes since commit 834ea58a9b2eb698c760681c14a599a8941377ac:
- 2014-01-03 (2014-01-02 15:10:19 +0000)
are available in the git repository at:
git://bogomips.org/ruby.git sig-intr-init
for you to fetch changes up to 9cc5aeb1a6a1cde504e899a5e3d59a0b4398c8cc:
signal.c: avoid repeated disable/enable interrupt (2014-01-02 22:22:58 +0000)
Eric Wong (1):
signal.c: avoid repeated disable/enable interrupt
signal.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Files
Updated by hsbt (Hiroshi SHIBATA) almost 11 years ago
- Status changed from Open to Closed
duplicated #9345