RFR: 8293972: runtime/NMT/NMTInitializationTest.java#default_long-off failed with "Suspiciously long bucket chains in lookup table."

Gerard Ziemski gziemski at openjdk.org
Thu Jun 22 15:28:14 UTC 2023


On Thu, 22 Jun 2023 14:31:52 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:

> > This is failing in GHA:
> > ```
> >  assert(false) failed: NMT preinit lookup table degenerated (7/14 chains longer than 30)
> > ```
> 
> Investigating...

I used `(2^13 - 1)` notation in the code to be more explicit on how the value is constructed, but `^` is XOR operator, not `pow`. I will fix this:

`  static const int table_size = 8191; // i.e. 8191==(2^13 - 1);
`

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

PR Comment: https://git.openjdk.org/jdk/pull/14607#issuecomment-1602828813


More information about the hotspot-runtime-dev mailing list