8301659: Resolve initialization reordering issues on Windows for libawt and libsaproc
Reviewed-by: dholmes, aivanov
This commit is contained in:
parent
2d50c7d477
commit
725d57b2e2
@ -129,10 +129,10 @@ void GDIHashtable::List::clear() {
|
|||||||
GDIHashtable::BatchDestructionManager::BatchDestructionManager(UINT nFirstThreshold,
|
GDIHashtable::BatchDestructionManager::BatchDestructionManager(UINT nFirstThreshold,
|
||||||
UINT nSecondThreshold,
|
UINT nSecondThreshold,
|
||||||
UINT nDestroyPeriod) :
|
UINT nDestroyPeriod) :
|
||||||
|
m_nCounter(0),
|
||||||
m_nFirstThreshold(nFirstThreshold),
|
m_nFirstThreshold(nFirstThreshold),
|
||||||
m_nSecondThreshold(nSecondThreshold),
|
m_nSecondThreshold(nSecondThreshold),
|
||||||
m_nDestroyPeriod(nDestroyPeriod),
|
m_nDestroyPeriod(nDestroyPeriod),
|
||||||
m_nCounter(0),
|
|
||||||
m_bBatchingEnabled(TRUE)
|
m_bBatchingEnabled(TRUE)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -124,8 +124,9 @@ class AutoJavaByteArray {
|
|||||||
public:
|
public:
|
||||||
// check env->ExceptionOccurred() after ctor
|
// check env->ExceptionOccurred() after ctor
|
||||||
AutoJavaByteArray(JNIEnv* env, jbyteArray byteArray, jint releaseMode = JNI_ABORT)
|
AutoJavaByteArray(JNIEnv* env, jbyteArray byteArray, jint releaseMode = JNI_ABORT)
|
||||||
: env(env), byteArray(byteArray), releaseMode(releaseMode),
|
: env(env), byteArray(byteArray),
|
||||||
bytePtr(env->GetByteArrayElements(byteArray, nullptr)) {
|
bytePtr(env->GetByteArrayElements(byteArray, nullptr)),
|
||||||
|
releaseMode(releaseMode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
~AutoJavaByteArray() {
|
~AutoJavaByteArray() {
|
||||||
|
Loading…
Reference in New Issue
Block a user