<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/test/gpu_label_memory_test.cpp, branch main</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=main</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-25T12:11:24+00:00</updated>
<entry>
<title>runtime: preserve in-flight GPU label targets when expanding a non-heap region</title>
<updated>2026-11-25T12:11:24+00:00</updated>
<author>
<name>IlyassRS</name>
<email>ilyassroussi2000@gmail.com</email>
</author>
<published>2026-11-25T12:11:24+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=0267290f9c7ec35bece4e0b81a132f7d8310e4e6'/>
<id>urn:sha1:0267290f9c7ec35bece4e0b81a132f7d8310e4e6</id>
<content type='text'>
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&lt;Region&gt; whenever an
existing non-heap region at the same base and allocation_base grew (end &gt;
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
</content>
</entry>
</feed>
