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

Reviewed-by: dholmes, aivanov
This commit is contained in:
Julian Waters 2023-02-02 15:22:18 +00:00
parent 2d50c7d477
commit 725d57b2e2
2 changed files with 4 additions and 3 deletions

View File

@ -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)
{
}

View File

@ -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() {