[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/slime 2df69effea 03/44: clasp: cleanup old debugging code
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/slime 2df69effea 03/44: clasp: cleanup old debugging code |
Date: |
Fri, 29 Dec 2023 01:00:00 -0500 (EST) |
branch: elpa/slime
commit 2df69effea63e160cfe0f2b6dfd2e2821023f18a
Author: Bike <aeshtaer@gmail.com>
Commit: Stas Boukarev <stassats@gmail.com>
clasp: cleanup old debugging code
The output-file thing for swank-compile-file was not explained
and I don't see any reason to keep doing that.
---
swank/clasp.lisp | 40 +++++-----------------------------------
1 file changed, 5 insertions(+), 35 deletions(-)
diff --git a/swank/clasp.lisp b/swank/clasp.lisp
index 033529d171..6b5ee75b77 100644
--- a/swank/clasp.lisp
+++ b/swank/clasp.lisp
@@ -13,14 +13,6 @@
(in-package swank/clasp)
-#+(or)
-(eval-when (:compile-toplevel :load-toplevel :execute)
- (setq swank::*log-output* (open "/tmp/slime.log" :direction :output))
- (setq swank:*log-events* t))
-
-(defmacro slime-dbg (fmt &rest args)
- `(swank::log-event "slime-dbg ~a ~a~%" mp:*current-process* (apply #'format
nil ,fmt ,args)))
-
;; Hard dependencies.
(eval-when (:compile-toplevel :load-toplevel :execute)
(require 'sockets))
@@ -36,8 +28,6 @@
(when (find-symbol "TEMPORARY-DIRECTORY" "EXT")
(pushnew :temporary-directory *features*)))
-(declaim (optimize (debug 3)))
-
;;; Swank-mop
(eval-when (:compile-toplevel :load-toplevel :execute)
@@ -277,18 +267,14 @@
load-p external-format
&key policy)
(declare (ignore policy))
- (format t "Compiling file input-file = ~a output-file = ~a~%" input-file
output-file)
- ;; Ignore the output-file and generate our own
- (let ((tmp-output-file (compile-file-pathname (mkstemp
"clasp-swank-compile-file-"))))
- (format t "Using tmp-output-file: ~a~%" tmp-output-file)
- (multiple-value-bind (fasl warnings-p failure-p)
- (with-compilation-hooks ()
- (compile-file input-file :output-file tmp-output-file
- :external-format external-format))
+ (multiple-value-bind (fasl warnings-p failure-p)
+ (with-compilation-hooks ()
+ (compile-file input-file :output-file output-file
+ :external-format external-format))
(values fasl warnings-p
(or failure-p
(when load-p
- (not (load fasl))))))))
+ (not (load fasl)))))))
(defvar *tmpfile-map* (make-hash-table :test #'equal))
@@ -352,7 +338,6 @@
(let ((macro-forms '())
(compiler-macro-forms '())
(function-quoted-forms '()))
- (format t "In collect-macro-forms~%")
(cmp:code-walk
(lambda (form environment)
(when (and (consp form)
@@ -673,47 +658,32 @@
(defimplementation wake-thread (thread)
(let* ((mbox (mailbox thread))
(mutex (mailbox.mutex mbox)))
- (format t "About to with-lock in wake-thread~%")
(mp:with-lock (mutex)
- (format t "In wake-thread~%")
(mp:condition-variable-broadcast (mailbox.cvar mbox)))))
(defimplementation send (thread message)
(let* ((mbox (mailbox thread))
(mutex (mailbox.mutex mbox)))
- (swank::log-event "clasp.lisp: send message ~a mutex: ~a~%" message
mutex)
- (swank::log-event "clasp.lisp: (lock-owner mutex) -> ~a~%"
(mp:lock-owner mutex))
- (swank::log-event "clasp.lisp: (lock-count mutex) -> ~a~%"
(mp:lock-count mutex))
(mp:with-lock (mutex)
- (swank::log-event "clasp.lisp: in with-lock (lock-owner mutex) ->
~a~%" (mp:lock-owner mutex))
- (swank::log-event "clasp.lisp: in with-lock (lock-count mutex) ->
~a~%" (mp:lock-count mutex))
(setf (mailbox.queue mbox)
(nconc (mailbox.queue mbox) (list message)))
- (swank::log-event "clasp.lisp: send about to broadcast~%")
(mp:condition-variable-broadcast (mailbox.cvar mbox)))))
(defimplementation receive-if (test &optional timeout)
- (slime-dbg "Entered receive-if")
(let* ((mbox (mailbox (current-thread)))
(mutex (mailbox.mutex mbox)))
- (slime-dbg "receive-if assert")
(assert (or (not timeout) (eq timeout t)))
(loop
- (slime-dbg "receive-if check-slime-interrupts")
(check-slime-interrupts)
- (slime-dbg "receive-if with-lock")
(mp:with-lock (mutex)
(let* ((q (mailbox.queue mbox))
(tail (member-if test q)))
(when tail
(setf (mailbox.queue mbox) (nconc (ldiff q tail) (cdr tail)))
(return (car tail))))
- (slime-dbg "receive-if when (eq")
(when (eq timeout t) (return (values nil t)))
- (slime-dbg "receive-if condition-variable-timedwait")
(mp:condition-variable-wait (mailbox.cvar mbox) mutex) ; timedwait
0.2
- (slime-dbg "came out of condition-variable-timedwait")
(sys:check-pending-interrupts)))))
) ; #+threads (progn ...
- [nongnu] elpa/slime 50d4a7b168 17/44: Fix emacs error when M-.-ing to nonexistent file, (continued)
- [nongnu] elpa/slime 50d4a7b168 17/44: Fix emacs error when M-.-ing to nonexistent file, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime b86b388234 19/44: asdf: Upcase INTERN'd symbols for ECL usage, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 7d39285af4 08/44: news: update for ABCL fixes, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 5cb01098e9 22/44: Fixed a problem with intering symbols into the user's package., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 875f14f593 28/44: No error when there's no continue/abort restarts., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime c753c7e912 30/44: Escape %-Constructs in the Mode Line (manual 24.4.5), ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 0880c32716 31/44: Fix typo in docs., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime ba3d0794e7 23/44: Fix parsing after reader conditionals., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime aa3da5f7ae 06/44: abcl: normalize whitespace to SLIME conventions, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime ce024caf08 02/44: clasp: Use external interfaces where available, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 2df69effea 03/44: clasp: cleanup old debugging code,
ELPA Syncer <=
- [nongnu] elpa/slime e6a71c725c 09/44: slime-repl: reset the output column on new evaluation., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 5e8fc7cad5 11/44: slime-repl: reset the output column in the right way., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime e193bc5f34 12/44: I'm not your brother, pal., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime dd179f4a0c 13/44: Rework swank.asd to produce actual compilation artifact (#760), ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 117bbf0d3c 15/44: abcl: fix for abcl-1.8.0, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 8f166c4149 18/44: Align compilation artifact paths in swank-loader with ASDF, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 31c5449848 20/44: Fix build under SBCL, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime d5b8da7ce1 21/44: eliminate package variance warning on SBCL, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 65ab630434 35/44: Inspect definition: handle eql specializers., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime fcd6bccffd 25/44: clasp: new xref implementation, ELPA Syncer, 2023/12/29