changeset 51953:3aac38c47955

8211274: x86_32 build failures after JDK-8211029 (Have a common set of enabled warnings for all native libraries) Reviewed-by: dholmes, tschatzl
author shade
date Fri, 28 Sep 2018 18:28:49 +0200
parents e374b0383035
children d82660ddd75c
files src/hotspot/cpu/x86/jniFastGetField_x86_32.cpp src/hotspot/cpu/x86/stubGenerator_x86_32.cpp
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/x86/jniFastGetField_x86_32.cpp	Fri Sep 28 18:28:48 2018 +0200
+++ b/src/hotspot/cpu/x86/jniFastGetField_x86_32.cpp	Fri Sep 28 18:28:49 2018 +0200
@@ -131,7 +131,8 @@
     case T_BYTE:    slow_case_addr = jni_GetByteField_addr();    break;
     case T_CHAR:    slow_case_addr = jni_GetCharField_addr();    break;
     case T_SHORT:   slow_case_addr = jni_GetShortField_addr();   break;
-    case T_INT:     slow_case_addr = jni_GetIntField_addr();
+    case T_INT:     slow_case_addr = jni_GetIntField_addr();     break;
+    default:        ShouldNotReachHere();
   }
   // tail call
   __ jump (ExternalAddress(slow_case_addr));
--- a/src/hotspot/cpu/x86/stubGenerator_x86_32.cpp	Fri Sep 28 18:28:48 2018 +0200
+++ b/src/hotspot/cpu/x86/stubGenerator_x86_32.cpp	Fri Sep 28 18:28:49 2018 +0200
@@ -87,8 +87,8 @@
     case T_INT:     inc_counter_np(SharedRuntime::_jint_array_copy_ctr); return;
     case T_LONG:    inc_counter_np(SharedRuntime::_jlong_array_copy_ctr); return;
     case T_OBJECT:  inc_counter_np(SharedRuntime::_oop_array_copy_ctr); return;
+    default:        ShouldNotReachHere();
     }
-    ShouldNotReachHere();
 #endif //PRODUCT
   }