Added experimental fix for inlining issue in assembly init.
This commit is contained in:
@@ -363,6 +363,7 @@ public class PluginManagementService : IAssemblyManagementService
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MethodImpl(MethodImplOptions.NoOptimization)]
|
||||||
public FluentResults.Result ActivatePluginInstances(ImmutableArray<ContentPackage> executionOrder, bool excludeAlreadyRunningPackages = true)
|
public FluentResults.Result ActivatePluginInstances(ImmutableArray<ContentPackage> executionOrder, bool excludeAlreadyRunningPackages = true)
|
||||||
{
|
{
|
||||||
if (executionOrder.IsDefaultOrEmpty)
|
if (executionOrder.IsDefaultOrEmpty)
|
||||||
@@ -481,6 +482,7 @@ public class PluginManagementService : IAssemblyManagementService
|
|||||||
return results;
|
return results;
|
||||||
|
|
||||||
// helper
|
// helper
|
||||||
|
[MethodImpl(MethodImplOptions.NoOptimization)]
|
||||||
FluentResults.Result PluginInitRunner(IAssemblyPlugin plugin, Action<IAssemblyPlugin> action)
|
FluentResults.Result PluginInitRunner(IAssemblyPlugin plugin, Action<IAssemblyPlugin> action)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -832,6 +834,7 @@ public class PluginManagementService : IAssemblyManagementService
|
|||||||
_storageService.PurgeCache();
|
_storageService.PurgeCache();
|
||||||
GC.Collect();
|
GC.Collect();
|
||||||
GC.Collect(GC.MaxGeneration, GCCollectionMode.Aggressive, true);
|
GC.Collect(GC.MaxGeneration, GCCollectionMode.Aggressive, true);
|
||||||
|
GC.WaitForPendingFinalizers();
|
||||||
GC.WaitForFullGCComplete(1000);
|
GC.WaitForFullGCComplete(1000);
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user