Skip to content

Commit d1a364b

Browse files
Aditi SrinivasAditi Srinivas
authored andcommitted
fixup
1 parent a65d2fe commit d1a364b

File tree

2 files changed

+9
-40
lines changed

2 files changed

+9
-40
lines changed

runtime/bcutil/attrlookup.h

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright IBM Corp. and others 1991
3-
*
4-
* This program and the accompanying materials are made available under
5-
* the terms of the Eclipse Public License 2.0 which accompanies this
6-
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7-
* or the Apache License, Version 2.0 which accompanies this distribution and
8-
* is available at https://www.apache.org/licenses/LICENSE-2.0.
9-
*
10-
* This Source Code may also be made available under the following
11-
* Secondary Licenses when the conditions for such availability set
12-
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13-
* General Public License, version 2 with the GNU Classpath
14-
* Exception [1] and GNU General Public License, version 2 with the
15-
* OpenJDK Assembly Exception [2].
16-
*
17-
* [1] https://www.gnu.org/software/classpath/license.html
18-
* [2] https://openjdk.org/legal/assembly-exception.html
19-
*
20-
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0 OR GPL-2.0-only WITH OpenJDK-assembly-exception-1.0
21-
*******************************************************************************/
22-
231
/* ANSI-C code produced by gperf version 3.1 */
242
/* Command-line: gperf -CD -t --output-file=attrlookup.h attrlookup.gperf */
253
/* Computed positions: -k'2' */
@@ -59,7 +37,7 @@ struct AttribType
5937
U_8 strippedAttribCode;
6038
};
6139

62-
#define TOTAL_KEYWORDS 31
40+
#define TOTAL_KEYWORDS 30
6341
#define MIN_WORD_LENGTH 4
6442
#define MAX_WORD_LENGTH 36
6543
#define MIN_HASH_VALUE 4
@@ -73,7 +51,7 @@ __inline
7351
inline
7452
#endif
7553
#endif
76-
static size_t
54+
static unsigned int
7755
attributeHash (register const char *str, register size_t len)
7856
{
7957
static const unsigned char asso_values[] =
@@ -88,7 +66,7 @@ attributeHash (register const char *str, register size_t len)
8866
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
8967
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
9068
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
91-
51, 31, 51, 51, 51, 15, 51, 51, 51, 5,
69+
51, 31, 51, 51, 51, 15, 51, 51, 51, 51,
9270
0, 0, 51, 51, 51, 51, 15, 0, 51, 51,
9371
25, 0, 51, 51, 51, 51, 51, 51, 51, 51,
9472
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
@@ -108,12 +86,6 @@ attributeHash (register const char *str, register size_t len)
10886
return len + asso_values[(unsigned char)str[1]];
10987
}
11088

111-
#ifdef __GNUC__
112-
__inline
113-
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
114-
__attribute__ ((__gnu_inline__))
115-
#endif
116-
#endif
11789
const struct AttribType *
11890
lookupKnownAttribute (register const char *str, register size_t len)
11991
{
@@ -129,7 +101,7 @@ lookupKnownAttribute (register const char *str, register size_t len)
129101
{"InnerClasses", CFR_ATTRIBUTE_InnerClasses, CFR_ATTRIBUTE_InnerClasses},
130102
#line 55 "attrlookup.gperf"
131103
{"ConstantValue", CFR_ATTRIBUTE_ConstantValue, CFR_ATTRIBUTE_ConstantValue},
132-
#line 77 "attrlookup.gperf"
104+
#line 76 "attrlookup.gperf"
133105
{"NullRestricted", CFR_ATTRIBUTE_NullRestricted, CFR_ATTRIBUTE_NullRestricted},
134106
#line 57 "attrlookup.gperf"
135107
{"EnclosingMethod", CFR_ATTRIBUTE_EnclosingMethod, CFR_ATTRIBUTE_EnclosingMethod},
@@ -139,12 +111,10 @@ lookupKnownAttribute (register const char *str, register size_t len)
139111
{"AnnotationDefault", CFR_ATTRIBUTE_AnnotationDefault, CFR_ATTRIBUTE_AnnotationDefault},
140112
#line 61 "attrlookup.gperf"
141113
{"LocalVariableTable", CFR_ATTRIBUTE_LocalVariableTable, CFR_ATTRIBUTE_StrippedLocalVariableTable},
142-
#line 76 "attrlookup.gperf"
114+
#line 75 "attrlookup.gperf"
143115
{"LoadableDescriptors", CFR_ATTRIBUTE_LoadableDescriptors, CFR_ATTRIBUTE_LoadableDescriptors},
144116
#line 62 "attrlookup.gperf"
145117
{"SourceDebugExtension", CFR_ATTRIBUTE_SourceDebugExtension, CFR_ATTRIBUTE_StrippedSourceDebugExtension},
146-
#line 75 "attrlookup.gperf"
147-
{"ImplicitCreation", CFR_ATTRIBUTE_ImplicitCreation, CFR_ATTRIBUTE_ImplicitCreation},
148118
#line 63 "attrlookup.gperf"
149119
{"LocalVariableTypeTable", CFR_ATTRIBUTE_LocalVariableTypeTable, CFR_ATTRIBUTE_StrippedLocalVariableTypeTable},
150120
#line 48 "attrlookup.gperf"
@@ -186,14 +156,14 @@ lookupKnownAttribute (register const char *str, register size_t len)
186156
static const signed char lookup[] =
187157
{
188158
-1, -1, -1, -1, 0, -1, -1, -1, -1, 1, 2, -1, 3, 4,
189-
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, -1, 17,
190-
18, 19, 20, 21, -1, -1, 22, 23, 24, 25, -1, 26, -1, 27,
191-
28, -1, -1, -1, -1, 29, -1, -1, 30
159+
5, 6, 7, 8, 9, 10, 11, -1, 12, 13, 14, 15, -1, 16,
160+
17, 18, 19, 20, -1, -1, 21, 22, 23, 24, -1, 25, -1, 26,
161+
27, -1, -1, -1, -1, 28, -1, -1, 29
192162
};
193163

194164
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
195165
{
196-
register size_t key = attributeHash (str, len);
166+
register unsigned int key = attributeHash (str, len);
197167

198168
if (key <= MAX_HASH_VALUE)
199169
{

runtime/oti/j9javaaccessflags.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,5 +193,4 @@
193193
(J9StaticFieldRefStrictInitWritten == ((classAndFlags) & J9StaticFieldRefStrictInitMask))
194194
#endif /* defined(J9VM_OPT_VALHALLA_STRICT_FIELDS) */
195195

196-
197196
#endif /*J9JAVAACCESSFLAGS_H */

0 commit comments

Comments
 (0)