JDK-8203437 : 8199370 broke build on linux-ppc64le (w/ GCC 4.8.5.)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-05-18
  • Updated: 2018-05-30
  • Resolved: 2018-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11 b15Fixed
Related Reports
Relates :  
Description
libnativeGC05.c:80:19: error: 'pair_getj_mid' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                j = (*env)->CallIntMethod(env, pair, pair_getj_mid);
                  ^

libnativeGC05.c:78:19: error: 'pair_geti_mid' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                i = (*env)->CallIntMethod(env, pair, pair_geti_mid);
                  ^
Comments
suggested fix: diff -r 3af6ed2513aa test/hotspot/jtreg/vmTestbase/gc/gctests/nativeGC05/libnativeGC05.c --- a/test/hotspot/jtreg/vmTestbase/gc/gctests/nativeGC05/libnativeGC05.c Thu May 17 21:05:43 2018 -0700 +++ b/test/hotspot/jtreg/vmTestbase/gc/gctests/nativeGC05/libnativeGC05.c Fri May 18 10:02:11 2018 -0700 @@ -27,7 +27,7 @@ Java_gc_gctests_nativeGC05_nativeGC05_kickOffRefillers (JNIEnv *env, jobject obj, jobject matrix, jobject stack) { jclass matrixClass, stackClass, pairClass = 0; - jmethodID stack_pop_mid, stack_empty_mid, matrix_repopulate_mid, pair_geti_mid, pair_getj_mid; + jmethodID stack_pop_mid, stack_empty_mid, matrix_repopulate_mid, pair_geti_mid, pair_getj_mid = 0; jobject pair; jint i, j; jboolean b;
18-05-2018