Skip to content

Commit 1c4d839

Browse files
committed
GPU: Remove bogus placement new leading to memory leak
1 parent 435b17b commit 1c4d839

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
@@ -607,7 +607,7 @@ EndConfig()
607607

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

0 commit comments

Comments
 (0)