fix: default initialize allocated memory when memory is overwritten

Related-To: NEO-5093

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2025-03-11 12:16:50 +00:00
committed by Compute-Runtime-Automation
parent 8ec5434460
commit a86105814d
7 changed files with 13 additions and 12 deletions

View File

@@ -3181,7 +3181,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendQueryKernelTimestamps(
}
commandContainer.addToResidencyContainer(dstPtrAllocationStruct.alloc);
std::unique_ptr<EventData[]> timestampsData = std::make_unique<EventData[]>(numEvents);
std::unique_ptr<EventData[]> timestampsData = std::make_unique_for_overwrite<EventData[]>(numEvents);
for (uint32_t i = 0u; i < numEvents; ++i) {
auto event = Event::fromHandle(phEvents[i]);