aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Translation/Translator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Translation/Translator.cs')
-rw-r--r--ARMeilleure/Translation/Translator.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/ARMeilleure/Translation/Translator.cs b/ARMeilleure/Translation/Translator.cs
index d78f5e21..612f6647 100644
--- a/ARMeilleure/Translation/Translator.cs
+++ b/ARMeilleure/Translation/Translator.cs
@@ -148,6 +148,8 @@ namespace ARMeilleure.Translation
ClearJitCache();
+ ResetPools();
+
_jumpTable.Dispose();
_jumpTable = null;
}
@@ -249,12 +251,18 @@ namespace ARMeilleure.Translation
}
}
- ResetOperandPool(highCq);
- ResetOperationPool(highCq);
+ ReturnOperandPool(highCq);
+ ReturnOperationPool(highCq);
return new TranslatedFunction(func, funcSize, highCq);
}
+ internal static void ResetPools()
+ {
+ ResetOperandPools();
+ ResetOperationPools();
+ }
+
private struct Range
{
public ulong Start { get; }