summaryrefslogtreecommitdiff
path: root/android/module_proxy.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2025-03-19 14:12:09 -0700
committer Colin Cross <ccross@android.com> 2025-03-19 16:25:18 -0700
commitb790b9cb8f891bf21755ccc97a5405b2ed0687d2 (patch)
tree2f62bf7fc1ae74688bfd98113a61cc6bef87e1af /android/module_proxy.go
parent80f92da0efc1924aa30866e64b266d1dee87aa51 (diff)
Clear as much of cc.Module as possible after GenerateBuildActions
Reduce peak memory usage by adding a CleanupAfterBuildActions method that is called at the end GenerateBuidlActions, nad use it to clear as much of cc.Module as possible. This is a temporary measure, eventually the entire module should be released by blueprint once all interactions are performed through providers. Test: all soong tests pass Change-Id: Idc3390ae4506ff2eef3231691e1de7446067961a
Diffstat (limited to 'android/module_proxy.go')
-rw-r--r--android/module_proxy.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/module_proxy.go b/android/module_proxy.go
index 561c4770c..81d90e9a0 100644
--- a/android/module_proxy.go
+++ b/android/module_proxy.go
@@ -27,6 +27,10 @@ func (m ModuleProxy) GenerateAndroidBuildActions(context ModuleContext) {
panic("method is not implemented on ModuleProxy")
}
+func (m ModuleProxy) CleanupAfterBuildActions() {
+ panic("method is not implemented on ModuleProxy")
+}
+
func (m ModuleProxy) ComponentDepsMutator(ctx BottomUpMutatorContext) {
panic("method is not implemented on ModuleProxy")
}