upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorIlyassRS <ilyassroussi2000@gmail.com>2026-11-25 13:11:24 +0100
committerIlyassRS <ilyassroussi2000@gmail.com>2026-11-25 13:11:24 +0100
commit0267290f9c7ec35bece4e0b81a132f7d8310e4e6 (patch)
tree7b9f50af874f872051a86b93cfffaa45fa35393a /runtime/test/cpp_unwind_test.cpp
parent0d80bc5df7c873f40965f34f185cb96913786765 (diff)
runtime: preserve in-flight GPU label targets when expanding a non-heap region
In runtime/src/gpu_label_memory.h, Memory::track() previously returned early when the new range lay within an existing non-heap region, but fell through to overwrite regions_[base] with a fresh std::shared_ptr<Region> whenever an existing non-heap region at the same base and allocation_base grew (end > r.end). Overwriting the shared_ptr invalidated every in-flight label::Target captured from that region, causing publish() to silently drop GPU completion value writes. Update r.end in place when base == r.begin with the same non-heap allocation_base so live targets retain their Region identity and generation (while preserving stale-target rejection across partial releases, separate tracking of adjacent pages, and fresh Region replacement for heap blocks or new reservations). Add portable unit and TSan concurrency test runtime/test/gpu_label_memory_test.cpp. Item: RT-GPU-LABEL-MEMORY-EXPAND
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions