mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
Adapt statprof to new preemptive interrupts
* module/statprof.scm (profile-signal-handler): Cut an additional stack frame, corresponding to the handle-interrupts trampoline added recently.
This commit is contained in:
parent
bfa3883592
commit
e7d3414079
1 changed files with 4 additions and 2 deletions
|
@ -275,9 +275,11 @@
|
|||
;; handler in an inner letrec, so that the compiler sees
|
||||
;; the inner reference to profile-signal-handler as the
|
||||
;; same as the procedure, and therefore keeps slot 0
|
||||
;; alive. Nastiness, that.
|
||||
;; alive. Nastiness, that. Finally we cut one more
|
||||
;; inner frame, corresponding to the handle-interrupts
|
||||
;; trampoline.
|
||||
(stack
|
||||
(or (make-stack #t profile-signal-handler (outer-cut state))
|
||||
(or (make-stack #t profile-signal-handler (outer-cut state) 1)
|
||||
(pk 'what! (make-stack #t)))))
|
||||
|
||||
(sample-stack-procs state stack)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue