mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux
Reviewed-by: stuefe, coleenp, roland
This commit is contained in:
parent
f21d1afd70
commit
83b3b21342
40 changed files with 129 additions and 124 deletions
|
@ -783,7 +783,7 @@ static void getBaseAndScale(int& base, int& scale, jclass acls, TRAPS) {
|
|||
|
||||
UNSAFE_ENTRY(jint, Unsafe_ArrayBaseOffset(JNIEnv *env, jobject unsafe, jclass acls))
|
||||
UnsafeWrapper("Unsafe_ArrayBaseOffset");
|
||||
int base, scale;
|
||||
int base = 0, scale = 0;
|
||||
getBaseAndScale(base, scale, acls, CHECK_0);
|
||||
return field_offset_from_byte_offset(base);
|
||||
UNSAFE_END
|
||||
|
@ -791,7 +791,7 @@ UNSAFE_END
|
|||
|
||||
UNSAFE_ENTRY(jint, Unsafe_ArrayIndexScale(JNIEnv *env, jobject unsafe, jclass acls))
|
||||
UnsafeWrapper("Unsafe_ArrayIndexScale");
|
||||
int base, scale;
|
||||
int base = 0, scale = 0;
|
||||
getBaseAndScale(base, scale, acls, CHECK_0);
|
||||
// This VM packs both fields and array elements down to the byte.
|
||||
// But watch out: If this changes, so that array references for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue