mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
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:
committed by
Compute-Runtime-Automation
parent
8ec5434460
commit
a86105814d
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user