Skip to content

Commit fee4708

Browse files
committed
GPU: Remove bogus placement new leading to memory leak
1 parent 79ea4b7 commit fee4708

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ GPUReconstruction::GPUReconstruction(const GPUSettingsDeviceBackend& cfg) : mHos
8686
mMaster = cfg.master;
8787
cfg.master->mSlaves.emplace_back(this);
8888
}
89-
new (&mProcessingSettings) GPUSettingsProcessing;
90-
new (&mGRPSettings) GPUSettingsGRP;
9189
param().SetDefaults(&mGRPSettings);
9290
mMemoryScalers.reset(new GPUMemorySizeScalers);
9391
for (uint32_t i = 0; i < NSECTORS; i++) {

GPU/GPUTracking/Base/GPUReconstructionLibrary.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ using namespace o2::gpu;
3434
GPUReconstruction* GPUReconstruction::CreateInstance(DeviceType type, bool forceType, GPUReconstruction* master)
3535
{
3636
GPUSettingsDeviceBackend cfg;
37-
new (&cfg) GPUSettingsDeviceBackend;
3837
cfg.deviceType = type;
3938
cfg.forceDeviceType = forceType;
4039
cfg.master = master;

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ EndConfig()
606606

607607
// Derrived parameters used in GPUParam
608608
BeginHiddenConfig(GPUSettingsParam, param)
609-
AddVariableRTC(dAlpha, float, 0.f) // angular size
609+
AddVariableRTC(dAlpha, float, 0.f) // angular size
610610
AddVariableRTC(assumeConstantBz, int8_t, 0) // Assume a constant magnetic field
611611
AddVariableRTC(toyMCEventsFlag, int8_t, 0) // events were build with home-made event generator
612612
AddVariableRTC(continuousTracking, int8_t, 0) // Continuous tracking, estimate bz and errors for abs(z) = 125cm during seeding

0 commit comments

Comments
 (0)