Hi Ashutosh,

Ashutosh Bapat <[email protected]>, 7 Kas 2026 Cmt, 17:31
tarihinde şunu yazdı:

> On Fri, Nov 6, 2026 at 4:46 PM Xuneng Zhou <[email protected]> wrote:
> >
> > Erroring out can help to stop the misake where it occurs. A build
> > without assert could accept the bad call, then fail later somewhere
> > else. It might make the problem a bit hard to understand. That said,
> > assert seems ok here since we haven't found code can make that bad
> > call.
> >
>
> Agreed that an ERROR would make an invalid call easier to diagnose in
> a build without assertions. I think Assert is sufficient here because
> this checks an internal lifecycle invariant, consistent with the other
> state-transition assertions. The current callers calculate the size
> once per shared-memory initialization cycle, and requests made after
> sizing are already rejected by runtime checks.


+1 to this. IMHO Asserts should be enough. And the patch LGTM as it is.


-- 
Best regards,
Melih

Reply via email to