[jdk11u-dev] RFR: 8248817: Windows: Improving common cross-platform code

Andrew Haley aph at openjdk.java.net
Mon Oct 4 09:00:08 UTC 2021


On Sun, 29 Aug 2021 19:03:52 GMT, Reka Kovacs <github.com+25946952+rnkovacs at openjdk.org> wrote:

> Not a clean backport. Differences to the original commit:
> 
> - The removed lines in `stubGenerator_x86_32.cpp` and `stubGenerator_x86_64.cpp` are slightly different on tip (comments - [JDK-8234563](https://bugs.openjdk.java.net/browse/JDK-8234563), MP checks - [JDK-8188764](https://bugs.openjdk.java.net/browse/JDK-8188764)), but fundamentally the same.
> - Changes to `add`, `xchg` and `cmpxchg` definitions in `atomic_windows_x86.hpp` needed to be adjusted to keep the original parameter orders (changed in JDK 14 by [JDK-8234563](https://bugs.openjdk.java.net/browse/JDK-8234563)).
> 
> Changes to `os_windows_x86.cpp` and `os_windows_x86.hpp` could be applied cleanly.
> 
> This is part of the Windows/AArch64 port.

Is it truly necessary to make such extensive changes to x86 code? I can understand why it's necessary to do such refactoring in head, but can't Windows x86 be mostly left alone, with Windows AArch64 added?

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

PR: https://git.openjdk.java.net/jdk11u-dev/pull/300


More information about the jdk-updates-dev mailing list