[PATCH v8 6/6] loongarch: Enable THP-aligned load segments by default on 64-bit

Wilco Dijkstra Wilco.Dijkstra@arm.com
Tue Apr 7 17:59:07 GMT 2026


Hi HJ,

> +  /* Enable THP-based load segment alignment by default on LoongArch64. */
> +  if (!TUNABLE_IS_INITIALIZED (glibc, elf, thp))

TUNABLE_IS_INITIALIZED takes one argument.  Did you mean
TUNABLE_IS_INITIALIZED_FULL?

> +    TUNABLE_SET (glibc, elf, thp, 1);

TUNABLE_SET takes 2 arguments.  Did you mean
TUNABLE_SET_FULL?


This works fine since TUNABLE_NAMESPACE is not set in sysdeps directories, so it
has 2 extra arguments in that case (we could clean this up to reduce confusion).

Cheers,
Wilco


More information about the Libc-alpha mailing list