RFR: 8378675: PPC64: increase instruction cache line size [v2]

Richard Reingruber rrich at openjdk.org
Wed Feb 25 17:07:52 UTC 2026


On Wed, 25 Feb 2026 14:56:15 GMT, David Briemann <dbriemann at openjdk.org> wrote:

>> Set the instruction cache line size for Power to 128 bytes.
>> 
>> Add functions to retrieve the data cache line size and instruction cache line size from the system (AIX & Linux).
>
> David Briemann has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - add comments that explain getconf behavior
>  - update copyright headers

src/hotspot/os/linux/os_linux.cpp line 5387:

> 5385: int os::get_dcache_line_size() {
> 5386:   // Uses getconf to retrieve LEVEL1_DCACHE_LINESIZE.
> 5387:   int size = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);

On ppc it seems to call `getauxval()` (seen in glibc sources and gdb). How did you find out that `getconf` is used?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29918#discussion_r2854266970


More information about the hotspot-dev mailing list