chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Mark identifiers used to collect profiling info as `bound-to-pro


From: Evan Hanson
Subject: [PATCH] Mark identifiers used to collect profiling info as `bound-to-procedure'
Date: Sun, 3 May 2020 10:06:38 +1200

Calls to `##sys#register-profile-info' and `set-profile-info-vector!`
are inserted into the program when profiling is enabled, so they should
be marked as procedures so the resulting call nodes are marked as safe,
just like we do for the `##sys#profile-entry' and `exit' procedures.
---
 c-platform.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git c-platform.scm c-platform.scm
index 9d20a524..19a4c97f 100644
--- c-platform.scm
+++ c-platform.scm
@@ -72,8 +72,10 @@
 (define default-profiling-declarations
   '((##core#declare
      (uses profiler)
-     (bound-to-procedure
-       ##sys#profile-entry ##sys#profile-exit) ) ) )
+     (bound-to-procedure ##sys#profile-entry
+                        ##sys#profile-exit
+                        ##sys#register-profile-info
+                        ##sys#set-profile-info-vector!))))
 
 (define default-units '(library eval))
 
-- 
2.25.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]