Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8239856: [ntintel] asserts about copying unaligned array element
Reviewed-by: stuefe, sspitsyn
  • Loading branch information
TheRealMDoerr committed Mar 6, 2020
1 parent f10fd7a commit 3adad5a6451e185df59ce6ebd381300da056e757
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/jdk.jdwp.agent/share/native/libjdwp/ArrayReferenceImpl.c
@@ -413,6 +413,9 @@ readLongComponents(JNIEnv *env, PacketInputStream *in,
jarray array, int index, int length)
{
int i;
#if defined (_WIN32) && defined (_MSC_VER)
__declspec(align(8))
#endif
jlong component;

for (i = 0; (i < length) && !inStream_error(in); i++) {
@@ -441,6 +444,9 @@ readDoubleComponents(JNIEnv *env, PacketInputStream *in,
jarray array, int index, int length)
{
int i;
#if defined (_WIN32) && defined (_MSC_VER)
__declspec(align(8))
#endif
jdouble component;

for (i = 0; (i < length) && !inStream_error(in); i++) {

0 comments on commit 3adad5a

Please sign in to comment.