Details
-
Type:
Enhancement
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.3
-
Component/s: None
-
Labels:None
-
Patch:Code
-
Approval:Ok
Description
The functions start-handling-break and add-break-thread! in clojure.contrib.repl-utils are regularly needed by tools such as the Clojure Debugging Toolkit. I propose we promote them to clojure.repl, eliminating what for many projects is their sole dependency on old contrib.
Issues to consider before OKing:
- the usage of sun.misc classes appears to be the only game in town. For comparison, JRuby and Groovy already offer access to these classes, Scala appears not to.
- the :need-init code in start-handling-break is too cute, but ain't broke, so won't change it.
- do we need to add code to clean up the weak references? If so:
- call each time a thread is added?
- switch to ConcurrentHashMap to match code already in Clojure?
Converted from http://www.assembla.com/spaces/clojure/tickets/460