RFR: 8301659: Resolve initialization reordering issues on Windows for libawt and libsaproc

Julian Waters jwaters at openjdk.org
Thu Feb 2 15:22:47 UTC 2023


On Thu, 2 Feb 2023 06:12:20 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> Small, trivial change to resolve initialization order reordering in constructors, required for [JDK-8288293](https://bugs.openjdk.org/browse/JDK-8288293)
> 
> gcc will fail to compile a Windows JDK with the following errors, which causes a build failure eventually:
> `GDIHashtable.cpp: m_nCounter is initialized before m_nDestroyPeriod [-Werror=reorder]` for libawt
> `sawindbg.cpp: bytePtr is initialized before releaseMode [-Werror=reorder]` for libsaproc
> 
> Reordering these initializer lists to appear in the order of their declarations will resolve the build failure

Thanks David and aivanov for the reviews

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

PR: https://git.openjdk.org/jdk/pull/12382



More information about the client-libs-dev mailing list