8220348: [ntintel] asserts about copying unaligned array
Reviewed-by: clanger, stuefe
This commit is contained in:
parent
547e472c42
commit
b1e086a5fc
@ -49,7 +49,7 @@ Java_java_util_prefs_WindowsPreferences_WindowsRegOpenKey(JNIEnv* env,
|
||||
int errorCode = RegOpenKeyEx((HKEY) hKey, str, 0, securityMask, &handle);
|
||||
(*env)->ReleaseByteArrayElements(env, lpSubKey, str, 0);
|
||||
|
||||
jlong tmp[2];
|
||||
__declspec(align(8)) jlong tmp[2];
|
||||
tmp[0] = (jlong) handle;
|
||||
tmp[1] = errorCode;
|
||||
jlongArray result = (*env)->NewLongArray(env, 2);
|
||||
@ -78,7 +78,7 @@ Java_java_util_prefs_WindowsPreferences_WindowsRegCreateKeyEx(JNIEnv* env,
|
||||
NULL, &handle, &lpdwDisposition);
|
||||
(*env)->ReleaseByteArrayElements(env, lpSubKey, str, 0);
|
||||
|
||||
jlong tmp[3];
|
||||
__declspec(align(8)) jlong tmp[3];
|
||||
tmp[0] = (jlong) handle;
|
||||
tmp[1] = errorCode;
|
||||
tmp[2] = lpdwDisposition;
|
||||
@ -196,7 +196,7 @@ Java_java_util_prefs_WindowsPreferences_WindowsRegQueryInfoKey(JNIEnv* env,
|
||||
&valuesNumber, &maxValueNameLength,
|
||||
NULL, NULL, NULL);
|
||||
|
||||
jlong tmp[5];
|
||||
__declspec(align(8)) jlong tmp[5];
|
||||
tmp[0] = subKeysNumber;
|
||||
tmp[1] = errorCode;
|
||||
tmp[2] = valuesNumber;
|
||||
|
@ -1164,6 +1164,9 @@ Java_sun_security_jgss_wrapper_GSSLibStub_inquireContext(JNIEnv *env,
|
||||
OM_uint32 time;
|
||||
OM_uint32 flags;
|
||||
int isInitiator, isEstablished;
|
||||
#if defined (_WIN32) && defined (_MSC_VER)
|
||||
__declspec(align(8))
|
||||
#endif
|
||||
jlong result[6];
|
||||
jlongArray jresult;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user