mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8212023: Implicit narrowing in Solaris/sparc initializers
Explicitly narrow or fix destination types. Reviewed-by: dholmes, tschatzl
This commit is contained in:
parent
1226dcbcfe
commit
6330fc1cb6
2 changed files with 21 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -205,9 +205,9 @@ void NativeCall::test() {
|
|||
uint idx;
|
||||
int offsets[] = {
|
||||
0x0,
|
||||
0xfffffff0,
|
||||
0x7ffffff0,
|
||||
0x80000000,
|
||||
(int)0xfffffff0,
|
||||
(int)0x7ffffff0,
|
||||
(int)0x80000000,
|
||||
0x20,
|
||||
0x4000,
|
||||
};
|
||||
|
@ -361,9 +361,9 @@ void NativeMovConstReg::test() {
|
|||
uint idx;
|
||||
int offsets[] = {
|
||||
0x0,
|
||||
0x7fffffff,
|
||||
0x80000000,
|
||||
0xffffffff,
|
||||
(int)0x7fffffff,
|
||||
(int)0x80000000,
|
||||
(int)0xffffffff,
|
||||
0x20,
|
||||
4096,
|
||||
4097,
|
||||
|
@ -534,9 +534,9 @@ void NativeMovConstRegPatching::test() {
|
|||
uint idx;
|
||||
int offsets[] = {
|
||||
0x0,
|
||||
0x7fffffff,
|
||||
0x80000000,
|
||||
0xffffffff,
|
||||
(int)0x7fffffff,
|
||||
(int)0x80000000,
|
||||
(int)0xffffffff,
|
||||
0x20,
|
||||
4096,
|
||||
4097,
|
||||
|
@ -630,9 +630,9 @@ void NativeMovRegMem::test() {
|
|||
uint idx1;
|
||||
int offsets[] = {
|
||||
0x0,
|
||||
0xffffffff,
|
||||
0x7fffffff,
|
||||
0x80000000,
|
||||
(int)0xffffffff,
|
||||
(int)0x7fffffff,
|
||||
(int)0x80000000,
|
||||
4096,
|
||||
4097,
|
||||
0x20,
|
||||
|
@ -751,9 +751,9 @@ void NativeJump::test() {
|
|||
uint idx;
|
||||
int offsets[] = {
|
||||
0x0,
|
||||
0xffffffff,
|
||||
0x7fffffff,
|
||||
0x80000000,
|
||||
(int)0xffffffff,
|
||||
(int)0x7fffffff,
|
||||
(int)0x80000000,
|
||||
4096,
|
||||
4097,
|
||||
0x20,
|
||||
|
|
|
@ -1567,11 +1567,11 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|||
}
|
||||
|
||||
typedef struct {
|
||||
Elf32_Half code; // Actual value as defined in elf.h
|
||||
Elf32_Half compat_class; // Compatibility of archs at VM's sense
|
||||
char elf_class; // 32 or 64 bit
|
||||
char endianess; // MSB or LSB
|
||||
char* name; // String representation
|
||||
Elf32_Half code; // Actual value as defined in elf.h
|
||||
Elf32_Half compat_class; // Compatibility of archs at VM's sense
|
||||
unsigned char elf_class; // 32 or 64 bit
|
||||
unsigned char endianess; // MSB or LSB
|
||||
char* name; // String representation
|
||||
} arch_t;
|
||||
|
||||
static const arch_t arch_array[]={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue