* Misc. formatting cleanup for the previous patch
* Added the new AppDomainLoading variable to the [XEngine] section in the example config0.6.8-post-fixes
parent
33448e4ba8
commit
dd13fa361b
|
@ -352,7 +352,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||||
throw new Exception(errtext);
|
throw new Exception(errtext);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_scriptEngine.World.Permissions.CanCompileScript(ownerUUID, (int)language) == false) {
|
if (m_scriptEngine.World.Permissions.CanCompileScript(ownerUUID, (int)language) == false)
|
||||||
|
{
|
||||||
// Not allowed to compile to this language!
|
// Not allowed to compile to this language!
|
||||||
string errtext = String.Empty;
|
string errtext = String.Empty;
|
||||||
errtext += ownerUUID + " is not in list of allowed users for this scripting language. Script will not be executed!";
|
errtext += ownerUUID + " is not in list of allowed users for this scripting language. Script will not be executed!";
|
||||||
|
|
|
@ -93,7 +93,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
private StateSource m_stateSource;
|
private StateSource m_stateSource;
|
||||||
private bool m_postOnRez;
|
private bool m_postOnRez;
|
||||||
private bool m_startedFromSavedState = false;
|
private bool m_startedFromSavedState = false;
|
||||||
private int m_CurrentStateHash;
|
private UUID m_CurrentStateHash;
|
||||||
private UUID m_RegionID = UUID.Zero;
|
private UUID m_RegionID = UUID.Zero;
|
||||||
|
|
||||||
private Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>
|
private Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>>
|
||||||
|
@ -901,7 +901,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
|
|
||||||
// Compare hash of the state we just just created with the state last written to disk
|
// Compare hash of the state we just just created with the state last written to disk
|
||||||
// If the state is different, update the disk file.
|
// If the state is different, update the disk file.
|
||||||
if(xml.GetHashCode() != m_CurrentStateHash)
|
UUID hash = UUID.Parse(Utils.MD5String(xml));
|
||||||
|
|
||||||
|
if(hash != m_CurrentStateHash)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -919,7 +921,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
//{
|
//{
|
||||||
// throw new Exception("Completed persistence save, but no file was created");
|
// throw new Exception("Completed persistence save, but no file was created");
|
||||||
//}
|
//}
|
||||||
m_CurrentStateHash = xml.GetHashCode();
|
m_CurrentStateHash = hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -710,15 +710,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
evidence, appSetup);
|
evidence, appSetup);
|
||||||
else
|
else
|
||||||
sandbox = AppDomain.CurrentDomain;
|
sandbox = AppDomain.CurrentDomain;
|
||||||
/*
|
|
||||||
PolicyLevel sandboxPolicy = PolicyLevel.CreateAppDomainLevel();
|
//PolicyLevel sandboxPolicy = PolicyLevel.CreateAppDomainLevel();
|
||||||
AllMembershipCondition sandboxMembershipCondition = new AllMembershipCondition();
|
//AllMembershipCondition sandboxMembershipCondition = new AllMembershipCondition();
|
||||||
PermissionSet sandboxPermissionSet = sandboxPolicy.GetNamedPermissionSet("Internet");
|
//PermissionSet sandboxPermissionSet = sandboxPolicy.GetNamedPermissionSet("Internet");
|
||||||
PolicyStatement sandboxPolicyStatement = new PolicyStatement(sandboxPermissionSet);
|
//PolicyStatement sandboxPolicyStatement = new PolicyStatement(sandboxPermissionSet);
|
||||||
CodeGroup sandboxCodeGroup = new UnionCodeGroup(sandboxMembershipCondition, sandboxPolicyStatement);
|
//CodeGroup sandboxCodeGroup = new UnionCodeGroup(sandboxMembershipCondition, sandboxPolicyStatement);
|
||||||
sandboxPolicy.RootCodeGroup = sandboxCodeGroup;
|
//sandboxPolicy.RootCodeGroup = sandboxCodeGroup;
|
||||||
sandbox.SetAppDomainPolicy(sandboxPolicy);
|
//sandbox.SetAppDomainPolicy(sandboxPolicy);
|
||||||
*/
|
|
||||||
m_AppDomains[appDomain] = sandbox;
|
m_AppDomains[appDomain] = sandbox;
|
||||||
|
|
||||||
m_AppDomains[appDomain].AssemblyResolve +=
|
m_AppDomains[appDomain].AssemblyResolve +=
|
||||||
|
|
|
@ -941,6 +941,13 @@
|
||||||
; Stack size per thread created
|
; Stack size per thread created
|
||||||
ThreadStackSize = 262144
|
ThreadStackSize = 262144
|
||||||
|
|
||||||
|
; Set this to true (the default) to load each script into a separate
|
||||||
|
; AppDomain. Setting this to false will load all script assemblies into the
|
||||||
|
; current AppDomain, which will reduce the per-script overhead at the
|
||||||
|
; expense of reduced security and the inability to garbage collect the
|
||||||
|
; script assemblies
|
||||||
|
AppDomainLoading = true
|
||||||
|
|
||||||
; Rate to poll for asynchronous command replies (ms)
|
; Rate to poll for asynchronous command replies (ms)
|
||||||
; currently unused
|
; currently unused
|
||||||
;AsyncLLCommandLoopms = 50
|
;AsyncLLCommandLoopms = 50
|
||||||
|
|
Loading…
Reference in New Issue