diff --git a/src/java.desktop/windows/native/libawt/windows/GDIHashtable.cpp b/src/java.desktop/windows/native/libawt/windows/GDIHashtable.cpp index 5934f7ca966..18b4ea9edc1 100644 --- a/src/java.desktop/windows/native/libawt/windows/GDIHashtable.cpp +++ b/src/java.desktop/windows/native/libawt/windows/GDIHashtable.cpp @@ -129,10 +129,10 @@ void GDIHashtable::List::clear() { GDIHashtable::BatchDestructionManager::BatchDestructionManager(UINT nFirstThreshold, UINT nSecondThreshold, UINT nDestroyPeriod) : + m_nCounter(0), m_nFirstThreshold(nFirstThreshold), m_nSecondThreshold(nSecondThreshold), m_nDestroyPeriod(nDestroyPeriod), - m_nCounter(0), m_bBatchingEnabled(TRUE) { } diff --git a/src/jdk.hotspot.agent/windows/native/libsaproc/sawindbg.cpp b/src/jdk.hotspot.agent/windows/native/libsaproc/sawindbg.cpp index f2b39643823..5568e30d7ed 100644 --- a/src/jdk.hotspot.agent/windows/native/libsaproc/sawindbg.cpp +++ b/src/jdk.hotspot.agent/windows/native/libsaproc/sawindbg.cpp @@ -124,8 +124,9 @@ class AutoJavaByteArray { public: // check env->ExceptionOccurred() after ctor AutoJavaByteArray(JNIEnv* env, jbyteArray byteArray, jint releaseMode = JNI_ABORT) - : env(env), byteArray(byteArray), releaseMode(releaseMode), - bytePtr(env->GetByteArrayElements(byteArray, nullptr)) { + : env(env), byteArray(byteArray), + bytePtr(env->GetByteArrayElements(byteArray, nullptr)), + releaseMode(releaseMode) { } ~AutoJavaByteArray() {