changeset 9460:d5e43150cbdc

8253375: OSX build fails with Xcode 12.0 (12A7209) Summary: Replace double array with short array in AdapterHandlerLibrary::create_native_wrapper Reviewed-by: prr, kbarrett, lucy
author phh
date Wed, 30 Sep 2020 12:16:25 +0000
parents 4e83cd6c5eec
children c673c965975e
files src/share/vm/runtime/sharedRuntime.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/sharedRuntime.cpp	Mon May 17 15:52:32 2021 +0000
+++ b/src/share/vm/runtime/sharedRuntime.cpp	Wed Sep 30 12:16:25 2020 +0000
@@ -2634,8 +2634,8 @@
     BufferBlob*  buf = buffer_blob(); // the temporary code buffer in CodeCache
     if (buf != NULL) {
       CodeBuffer buffer(buf);
-      double locs_buf[20];
-      buffer.insts()->initialize_shared_locs((relocInfo*)locs_buf, sizeof(locs_buf) / sizeof(relocInfo));
+      struct { double data[20]; } locs_buf;
+      buffer.insts()->initialize_shared_locs((relocInfo*)&locs_buf, sizeof(locs_buf) / sizeof(relocInfo));
       MacroAssembler _masm(&buffer);
 
       // Fill in the signature array, for the calling-convention call.