This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Gargage collected top-level bindings?


Per Bothner wrote:
One possible solution is that initializing a top-level binding sets the
default binding rather than the current thread's.

I tried a version of this, and it may be promising. (It fixes Dean's test-case.)

It's a one-line patch (which I've checked in) to ThreadLocation.java.
When we create a ThreadLocation, we create a default location.  This
will be used for all threads that do not override it using fluid-let
(or SRFI-39's parameterize).

Please let me know if this causes any unexpacted behavior.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]