RFR: 8279573: compiler/codecache/CodeCacheFullCountTest.java fails with "RuntimeException: the value of full_count is wrong."

Tobias Hartmann thartmann at openjdk.java.net
Mon Feb 28 14:40:52 UTC 2022


On Sat, 26 Feb 2022 13:14:57 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This change adds a conditional to make -XX:-UseCodeCacheFlushing not flush the code cache so that the test passes on loom.  It also makes full_count atomic so that the test in codeCache for printing is correct.  This change also fixes the test because the full_count field and the message printing are not synchronized, so you can get 2 or more depending on the number of compiler threads.
> Tested with tier1-3 on linux and windows x64.

Looks good to me.

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

Marked as reviewed by thartmann (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/7629


More information about the hotspot-dev mailing list