RFR: 8378107: Data cache zeroing is used even when it is prohibited

Andrew Haley aph at openjdk.org
Tue Feb 17 17:25:24 UTC 2026


On Tue, 17 Feb 2026 17:09:14 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> So, to confirm, this is how `_zva_length` is initialized:
> 
> ```
>   if (!(dczid_el0 & 0x10)) {
>     _zva_length = 4 << (dczid_el0 & 0xf);
>   }
> ```
> 
> When we do not take this branch, `_zva_length` remains at `0`, and so `is_zva_enabled()` should return `false`.

Yes. Maybe I should make it clearer now?

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

PR Comment: https://git.openjdk.org/jdk/pull/29762#issuecomment-3916007247


More information about the hotspot-dev mailing list