[ sisc-Bugs-1435707 ] s2j proxy calls happen in wrong DynamicEnvironment

"SourceForge.net" <[email protected]> Mon, 20 Feb 2006 23:50:06 -0800
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
Bugs item #1435707, was opened at 2006-02-21 07:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1435707&group_id=23735

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 6
Submitted By: Matthias Radestock (mradestock)
Assigned to: Nobody/Anonymous (nobody)
Summary: s2j proxy calls happen in wrong DynamicEnvironment

Initial Comment:
I think it's reasonable to expect calls to an s2j proxy from Java to take place in the DynamicEnvironment of any surrounding Scheme interpreter.

This is not so, as the attached program demonstrates.

What is actually happening is that on creation of the proxy it makes a copy of the current DynamicEnvironment. All calls to the proxy then use that DynamicEnvironment.

Not only is this wrong, it is also dangerous: if calls to the proxy happen in multiple threads then we have multiple threads accessing the same DynamicEnvironment, which is bad since DynamicEnvironments are not supposed to be shared between threads and are not thread-safe.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1435707&group_id=23735


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642