On Sat, Mar 01, 2025 at 10:35:48PM +0300, Dmitry Kozlyuk wrote:
> Hi Andre,
>
> > @@ -386,7 +386,7 @@ rte_rcu_qsbr_dq_reclaim(struct rte_rcu_qsbr_dq *dq,
> > unsigned int n,
> >
> > cnt = 0;
> >
> > -char data[dq->esize];
> > +char *data = alloca(dq->esize);
> > /* Check reader
Hi Andre,
> @@ -386,7 +386,7 @@ rte_rcu_qsbr_dq_reclaim(struct rte_rcu_qsbr_dq *dq,
> unsigned int n,
>
> cnt = 0;
>
> -char data[dq->esize];
> +char *data = alloca(dq->esize);
> /* Check reader threads quiescent state and reclaim resources */
> while (cnt < n &&
>
Hi,
Are there known issues with rcu lib?
I tried to remove the VLA from it by calling alloca() and gcc 14.2 on Linux
immediately complains about "array subscript outside array bounds".
$ ninja -C build
ninja: Entering directory `build'
[1/144] Compiling C object lib/librte_rcu.a.p/rcu_rte_rcu_qs
3 matches
Mail list logo