aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-08-07Another stab at cmickeyb's patch for script GC.Melanie1-4/+8
Moved the Close() for the appdomain-hosted parts into a new destructor on ScriptInstance.
2009-08-07Revert the XEngine memleak patch, it causes premature GC.Melanie1-8/+4
This matches behavior seen with an earlier attempt to do this, apparently the sponsor mechanism does't work in Mono
2009-08-06|From: James J Greensky <jame.j.greensky@intel.com>Melanie1-4/+8
|Date: Wed, 5 Aug 2009 09:51:52 -0700 |Subject: [PATCH] Closed two major memory leaks for scripted objects | |Two major memory leaks for the scripted objects were fixed |- One leak had to do with remoting acrossing app domains. When a script and | its controlling agent communicate across an application boundary, it calls | functions on a stub proxy object that then invokes the remote method on | the object in the other app domain. These stub objects (two for each script) | were setup to have infinate lifetimes and were never being garbage collected. |- The second leak was the result of adding a scene object part instance method | to a scene event and never removing it. This cause the event's delegate list | to maintain a link to that object which is then never freed as the scene event | object is never destroyed. Patch applied, please direct feedback to me. Possible issue: Longtime idle scripts like vendors may fail.
2008-11-30Update svn properties. Add copyright header. Minor formatting cleanup.Jeff Ames1-26/+53
2008-11-27Test commit.. just contains div trace and other stuff.Tedd Hansen1-0/+8
2008-11-26ScriptSponsor and LSL_Api are now MarshalByRefObjectTedd Hansen1-1/+1
2008-11-26Made ScriptSponsor serializableTedd Hansen1-0/+1
2008-11-26Attempt to give script objects a proper lease time (DNE and xengine). Relies ↵Tedd Hansen1-0/+17
on GC. Also removed lease for LSL_Api as it strictly speaking should not be MarshalByRef. Or should it? If so I broke scripting! :)