Mantis#1640. Thank you, Chernega for a patch that addresses: It would appear that calling llResetScript() in state_entry() causes deadlock of region.  Probably due to llResetScript calling state_entry again. llResetScript should see who called it,  and not recall state_entry() after a state/variable reset. Once this script is in a prim,  the region/world/debug/script window shows it consuming the server (from 2,400 to 800,000 milliseconds).
Mantis#1640. Thank you, Chernega for a patch that addresses:
It would appear that calling llResetScript() in state_entry() causes deadlock of region. 
Probably due to llResetScript calling state_entry again. llResetScript should see who called it, 
and not recall state_entry() after a state/variable reset. Once this script is in a prim, 
the region/world/debug/script window shows it consuming the server (from 2,400 to 800,000 milliseconds).


OpenSimian/opensimulator,Michelle-Argus/ArribasimExtract,ft-/arribasim-dev-tests,TomDataworks/opensim,ft-/arribasim-dev-tests,ft-/opensim-optimizations-wip-tests,QuillLittlefeather/opensim-1,ft-/arribasim-dev-extras,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/arribasim-dev-extras,RavenB/opensim,ft-/arribasim-dev-tests,QuillLittlefeather/opensim-1,ft-/arribasim-dev-tests,ft-/opensim-optimizations-wip,cdbean/CySim,N3X15/VoxelSim,bravelittlescientist/opensim-performance,ft-/opensim-optimizations-wip-extras,AlphaStaxLLC/taiga,allquixotic/opensim-autobackup,TechplexEngineer/Aurora-Sim,AlphaStaxLLC/taiga,TechplexEngineer/Aurora-Sim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/opensim-optimizations-wip,cdbean/CySim,rryk/omp-server,justinccdev/opensim,N3X15/VoxelSim,rryk/omp-server,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip-tests,AlphaStaxLLC/taiga,N3X15/VoxelSim,cdbean/CySim,zekizeki/agentservice,AlphaStaxLLC/taiga,cdbean/CySim,rryk/omp-server,Michelle-Argus/ArribasimExtract,OpenSimian/opensimulator,N3X15/VoxelSim,AlexRa/opensim-mods-Alex,justinccdev/opensim,OpenSimian/opensimulator,AlexRa/opensim-mods-Alex,Michelle-Argus/ArribasimExtract,bravelittlescientist/opensim-performance,ft-/opensim-optimizations-wip-tests,bravelittlescientist/opensim-performance,M-O-S-E-S/opensim,zekizeki/agentservice,M-O-S-E-S/opensim,OpenSimian/opensimulator,justinccdev/opensim,N3X15/VoxelSim,OpenSimian/opensimulator,intari/OpenSimMirror,cdbean/CySim,allquixotic/opensim-autobackup,ft-/arribasim-dev-extras,BogusCurry/arribasim-dev,zekizeki/agentservice,justinccdev/opensim,AlexRa/opensim-mods-Alex,BogusCurry/arribasim-dev,bravelittlescientist/opensim-performance,allquixotic/opensim-autobackup,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,zekizeki/agentservice,TechplexEngineer/Aurora-Sim,intari/OpenSimMirror,ft-/arribasim-dev-tests,intari/OpenSimMirror,ft-/opensim-optimizations-wip,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,QuillLittlefeather/opensim-1,ft-/opensim-optimizations-wip-tests,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,OpenSimian/opensimulator,ft-/opensim-optimizations-wip-extras,AlexRa/opensim-mods-Alex,N3X15/VoxelSim,ft-/arribasim-dev-extras,ft-/arribasim-dev-extras,Michelle-Argus/ArribasimExtract,AlphaStaxLLC/taiga,BogusCurry/arribasim-dev,QuillLittlefeather/opensim-1,intari/OpenSimMirror,allquixotic/opensim-autobackup,rryk/omp-server,intari/OpenSimMirror,M-O-S-E-S/opensim,rryk/omp-server,cdbean/CySim,ft-/arribasim-dev-tests,rryk/omp-server,bravelittlescientist/opensim-performance,BogusCurry/arribasim-dev,AlexRa/opensim-mods-Alex,AlexRa/opensim-mods-Alex,justinccdev/opensim,intari/OpenSimMirror,AlphaStaxLLC/taiga,OpenSimian/opensimulator,zekizeki/agentservice,allquixotic/opensim-autobackup,zekizeki/agentservice,ft-/opensim-optimizations-wip-tests,ft-/opensim-optimizations-wip-extras,RavenB/opensim,M-O-S-E-S/opensim,TomDataworks/opensim,RavenB/opensim,allquixotic/opensim-autobackup,TomDataworks/opensim,QuillLittlefeather/opensim-1,Michelle-Argus/ArribasimExtract,Michelle-Argus/ArribasimExtract,BogusCurry/arribasim-dev,justinccdev/opensim,N3X15/VoxelSim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/opensim-optimizations-wip-extras,RavenB/opensim,TomDataworks/opensim,ft-/arribasim-dev-extras,RavenB/opensim,N3X15/VoxelSim,TomDataworks/opensim,bravelittlescientist/opensim-performance,RavenB/opensim,TomDataworks/opensim,M-O-S-E-S/opensim,TechplexEngineer/Aurora-Sim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,BogusCurry/arribasim-dev,ft-/opensim-optimizations-wip,ft-/opensim-optimizations-wip-extras,QuillLittlefeather/opensim-1,AlphaStaxLLC/taiga,M-O-S-E-S/opensim,QuillLittlefeather/opensim-1,AlphaStaxLLC/taiga,RavenB/opensim