Skip to content

Commit dd108db

Browse files
authored
Merge pull request #19799 from theresa-m/remove_q_6
Remove remaining q uses
2 parents 3e0d338 + 36f35ec commit dd108db

File tree

35 files changed

+37
-110
lines changed

35 files changed

+37
-110
lines changed

debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/j9/SendSlot.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ public static UDATA getSendSlotsFromSignature(J9UTF8Pointer signature) throws Co
5555
break;
5656
}
5757
case 'L':
58-
/*[IF INLINE-TYPES]*/
59-
case 'Q':
60-
/*[ENDIF] INLINE-TYPES */
6158
for (i++; J9UTF8Helper.stringValue(signature).charAt(i) != ';'; i++);
6259
sendArgs = sendArgs.add(1);
6360
break;

debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/j9/stackwalker/JITStackWalker.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,6 @@ private void jitWalkResolveMethodFrame(WalkState walkState) throws CorruptDataEx
553553
while ((sigChar = jitNextSigChar(signatureString)) != ')') {
554554
switch (sigChar) {
555555
case 'L':
556-
/*[IF INLINE-TYPES]*/
557-
case 'Q':
558-
/*[ENDIF] INLINE-TYPES */
559556
if (J9SW_ARGUMENT_REGISTER_COUNT_DEFINED && !stackSpillCount.eq(0)) {
560557
if ((walkState.flags & J9_STACKWALK_ITERATE_O_SLOTS) != 0) {
561558
try {
@@ -633,9 +630,6 @@ private char jitNextSigChar(String signatureString) throws CorruptDataException
633630
/* Fall through to consume type name, utfChar == 'L' for return value */
634631

635632
case 'L':
636-
/*[IF INLINE-TYPES]*/
637-
case 'Q':
638-
/*[ENDIF] INLINE-TYPES */
639633
while (signatureString.charAt(charIndex++) != ';')
640634
;
641635
}

debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/pointer/helper/J9ClassHelper.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ public static String getJavaName(J9ClassPointer clazz) throws CorruptDataExcepti
169169
case 'Z': return "boolean" + aritySuffix;
170170

171171
case 'L':
172-
/*[IF INLINE-TYPES]*/
173-
case 'Q':
174-
/*[ENDIF] INLINE-TYPES */
175172
return getName(arrayClass.leafComponentType()) + aritySuffix;
176173
}
177174

@@ -537,10 +534,6 @@ public static boolean isAnonymousClass(J9ClassPointer clazz) throws CorruptDataE
537534
* @return true if the character indicates the beginning of a reference or value signature, false otherwise
538535
*/
539536
public static boolean isRefOrValSignature(char firstChar) {
540-
return firstChar == 'L'
541-
/*[IF INLINE-TYPES]*/
542-
|| (firstChar == 'Q')
543-
/*[ENDIF] INLINE-TYPES */
544-
;
537+
return firstChar == 'L';
545538
}
546539
}

debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/pointer/helper/J9IndexableObjectHelper.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,6 @@ public static void getData(J9IndexableObjectPointer objPointer, Object dst, int
397397
}
398398

399399
case 'L':
400-
/*[IF INLINE-TYPES]*/
401-
case 'Q':
402-
/*[ENDIF] INLINE-TYPES */
403400
case '[':
404401
{
405402
if (!(dst instanceof J9ObjectPointer[])) {
@@ -570,9 +567,6 @@ public static Object getData(J9IndexableObjectPointer objPointer) throws Corrupt
570567
}
571568

572569
case 'L':
573-
/*[IF INLINE-TYPES]*/
574-
case 'Q':
575-
/*[ENDIF] INLINE-TYPES */
576570
case '[':
577571
{
578572
J9ObjectPointer[] data = new J9ObjectPointer[arraySize];
@@ -649,9 +643,6 @@ public static String getDataAsString(J9IndexableObjectPointer array, int dumpLim
649643
break;
650644

651645
case 'L':
652-
/*[IF INLINE-TYPES]*/
653-
case 'Q':
654-
/*[ENDIF] INLINE-TYPES */
655646
case '[':
656647
{
657648
J9ObjectPointer item = ((J9ObjectPointer[]) data)[i];

debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/tools/ddrinteractive/commands/J9StaticsCommand.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ public void run(String command, String[] args, Context context, PrintStream out)
8484

8585
switch (sig.charAt(0)) {
8686
case 'L':
87-
/*[IF INLINE-TYPES]*/
88-
case 'Q':
89-
/*[ENDIF] INLINE-TYPES */
9087
case '[':
9188
CommandUtils.dbgPrint(out, "\t%s %s %s (!j9romstaticfieldshape %s) = !j9object %s\n",
9289
fieldAddress.getHexAddress(), name, sig, field.getHexAddress(), fieldAddress.at(0).getHexValue());

debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/tools/ddrinteractive/structureformat/extensions/J9ObjectStructureFormatter.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,6 @@ private void formatArrayObject(PrintStream out, J9ClassPointer localClazz, U8Poi
221221
}
222222
break;
223223
case 'L':
224-
/*[IF INLINE-TYPES]*/
225-
case 'Q':
226-
/*[ENDIF] INLINE-TYPES */
227224
case '[':
228225
if (ValueTypeHelper.getValueTypeHelper().isJ9ClassIsFlattened(localClazz)) {
229226
formatFlattenedObjectArray(out, tabLevel, begin, finish, array);

jcl/src/java.base/share/classes/java/lang/invoke/MethodTypeHelper.java

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,13 @@ static String getBytecodeStringName(Class<?> c) {
185185
/*
186186
* Convert the string from bytecode format to the format needed for ClassLoader#loadClass().
187187
* Change all '/' to '.'.
188-
* Remove the 'L', 'Q', and ';' from objects, unless they are array classes.
188+
* Remove the 'L' and ';' from objects, unless they are array classes.
189189
*/
190190
private static final Class<?> nonPrimitiveClassFromString(String name, ClassLoader classLoader) {
191191
try {
192192
name = name.replace('/', '.');
193-
if ((name.charAt(0) == 'L')
194-
/*[IF INLINE-TYPES]*/
195-
|| (name.charAt(0) == 'Q')
196-
/*[ENDIF] INLINE-TYPES */
197-
) {
198-
// Remove the 'L'/'Q' and ';'.
193+
if (name.charAt(0) == 'L') {
194+
// Remove the 'L' and ';'.
199195
name = name.substring(1, name.length() - 1);
200196
}
201197
return Class.forName(name, false, classLoader);
@@ -212,21 +208,13 @@ static final int parseIntoClass(char[] signature, int index, ArrayList<Class<?>>
212208
char current = signature[index];
213209
Class<?> c;
214210

215-
if ((current == 'L') || (current == '[')
216-
/*[IF INLINE-TYPES]*/
217-
|| (current == 'Q')
218-
/*[ENDIF] INLINE-TYPES */
219-
) {
211+
if ((current == 'L') || (current == '[')) {
220212
int start = index;
221213
while(signature[index] == '[') {
222214
index++;
223215
}
224216
String name;
225-
if ((signature[index] != 'L')
226-
/*[IF INLINE-TYPES]*/
227-
&& (signature[index] != 'Q')
228-
/*[ENDIF] INLINE-TYPES */
229-
) {
217+
if (signature[index] != 'L') {
230218
name = descriptor.substring(start, index + 1);
231219
} else {
232220
int end = descriptor.indexOf(';', index);

runtime/codert_vm/thunkcrt.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,7 @@ j9ThunkIterateAndEncode(char ** signatureDataPtr, U_8 ** encodedTypesPtr, U_8 *
361361
while ((c = *signatureData++) == '[') ;
362362
/* intentional fall-through */
363363
case 'L':
364-
/* intentional fall-through */
365-
case 'Q':
366-
if ((c == 'L') || (c == 'Q')) {
364+
if (c == 'L') {
367365
while (*signatureData++ != ';') ;
368366
}
369367
#if defined(J9VM_ENV_DATA64)
@@ -503,8 +501,6 @@ j9ThunkVMHelperFromSignature(void * jitConfig, UDATA signatureLength, char *sign
503501
case '[':
504502
/* intentional fall-through */
505503
case 'L':
506-
/* intentional fall-through */
507-
case 'Q':
508504
#if defined(J9VM_ENV_DATA64)
509505
helper = J9_BUILDER_SYMBOL(icallVMprJavaSendVirtualL);
510506
break;
@@ -540,8 +536,6 @@ j9ThunkInvokeExactHelperFromSignature(void * jitConfig, UDATA signatureLength, c
540536
case '[':
541537
/* intentional fall-through */
542538
case 'L':
543-
/* intentional fall-through */
544-
case 'Q':
545539
helper = J9_BUILDER_SYMBOL(icallVMprJavaSendInvokeExactL);
546540
break;
547541
default:

runtime/compiler/control/JITServerHelpers.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,8 +1526,6 @@ JITServerHelpers::getFullClassName(uint8_t *name, uint32_t length, const J9ROMCl
15261526
uint32_t baseNameLength = J9UTF8_LENGTH(baseName);
15271527

15281528
// Build the array class signature that will be passed to jitGetClassInClassloaderFromUTF8() on the client.
1529-
// Note that for object arrays we can simply use the "L" type signature since the distinction with "Q" types
1530-
// is ignored during array class lookup by name (see internalFindArrayClass() in runtime/vm/classsupport.c).
15311529
uint32_t i;
15321530
for (i = 0; i < numDimensions; ++i)
15331531
name[i] = '[';

runtime/compiler/env/J2IThunk.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ char TR_MHJ2IThunkTable::terseTypeChar(char *type)
111111
{
112112
case '[':
113113
case 'L':
114-
case 'Q':
115114
return TR::Compiler->target.is64Bit()? 'L' : 'I';
116115
case 'Z':
117116
case 'B':

0 commit comments

Comments
 (0)