diff options
author | 2023-05-16 00:58:37 +0000 | |
---|---|---|
committer | 2023-05-19 20:31:32 +0000 | |
commit | 0c10e4dcc027e341655e8eedc20bd77f9539a22b (patch) | |
tree | 84843d33683b21c94e695d2251b1fe20c58cb4fb /snapshot | |
parent | e59c0db5360b850b444c3bed9b92b0fd30b15e1e (diff) |
Parallelize singleton execution
Bug: 281536768
Test: manual, presubmits
Change-Id: I57fdc76ba6b277e88e196b506af87127a530fd37
Diffstat (limited to 'snapshot')
-rw-r--r-- | snapshot/host_fake_snapshot.go | 2 | ||||
-rw-r--r-- | snapshot/recovery_snapshot.go | 2 | ||||
-rw-r--r-- | snapshot/vendor_snapshot.go | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/snapshot/host_fake_snapshot.go b/snapshot/host_fake_snapshot.go index b04657d3d..c4cfbb5ce 100644 --- a/snapshot/host_fake_snapshot.go +++ b/snapshot/host_fake_snapshot.go @@ -75,7 +75,7 @@ type hostSnapshotFakeJsonFlags struct { } func registerHostSnapshotComponents(ctx android.RegistrationContext) { - ctx.RegisterSingletonType("host-fake-snapshot", HostToolsFakeAndroidSingleton) + ctx.RegisterParallelSingletonType("host-fake-snapshot", HostToolsFakeAndroidSingleton) } type hostFakeSingleton struct { diff --git a/snapshot/recovery_snapshot.go b/snapshot/recovery_snapshot.go index ac002be9c..8ff59cbcf 100644 --- a/snapshot/recovery_snapshot.go +++ b/snapshot/recovery_snapshot.go @@ -68,7 +68,7 @@ var RecoverySnapshotImageName = "recovery" type RecoverySnapshotImage struct{} func (RecoverySnapshotImage) Init(ctx android.RegistrationContext) { - ctx.RegisterSingletonType("recovery-snapshot", RecoverySnapshotSingleton) + ctx.RegisterParallelSingletonType("recovery-snapshot", RecoverySnapshotSingleton) } func (RecoverySnapshotImage) RegisterAdditionalModule(ctx android.RegistrationContext, name string, factory android.ModuleFactory) { diff --git a/snapshot/vendor_snapshot.go b/snapshot/vendor_snapshot.go index 8f7b8c215..4484c855d 100644 --- a/snapshot/vendor_snapshot.go +++ b/snapshot/vendor_snapshot.go @@ -78,8 +78,8 @@ var VendorSnapshotImageName = "vendor" type VendorSnapshotImage struct{} func (VendorSnapshotImage) Init(ctx android.RegistrationContext) { - ctx.RegisterSingletonType("vendor-snapshot", VendorSnapshotSingleton) - ctx.RegisterSingletonType("vendor-fake-snapshot", VendorFakeSnapshotSingleton) + ctx.RegisterParallelSingletonType("vendor-snapshot", VendorSnapshotSingleton) + ctx.RegisterParallelSingletonType("vendor-fake-snapshot", VendorFakeSnapshotSingleton) } func (VendorSnapshotImage) RegisterAdditionalModule(ctx android.RegistrationContext, name string, factory android.ModuleFactory) { |