Rename flush() to invalidate_icache() for clarity. Remove it in places where CodeBuffer::copy_code_to() is called afterwards, which copies the instructions to their final location and performs the correct flush already.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - code is now self explanatory - new invalidate_icache call not necessary - fix flush() call in new Shenandoah code - Merge branch 'master' into dlb/investigate_flush - polish - updated copyright headers - refactor some lost flushes - find a better name for the "flush" function - clean up - more fixes - ... and 11 more: https://git.openjdk.org/jdk/compare/cc692215...4b507869 Changes: https://git.openjdk.org/jdk/pull/31279/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31279&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8385696 Stats: 196 lines in 56 files changed: 0 ins; 43 del; 153 mod Patch: https://git.openjdk.org/jdk/pull/31279.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31279/head:pull/31279 PR: https://git.openjdk.org/jdk/pull/31279
