Skip to content

Commit 3ee1447

Browse files
author
Alexey Semenyuk
committed
8357503: gcbasher fails with java.lang.IllegalArgumentException: Unknown constant pool type
Reviewed-by: dholmes
1 parent 4d70689 commit 3ee1447

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/hotspot/jtreg/gc/stress/gcbasher/Decompiler.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -258,6 +258,7 @@ private ConstantPoolEntry[] decodeConstantPool() {
258258
final int CONSTANT_NameAndType = 12;
259259
final int CONSTANT_MethodHandle = 15;
260260
final int CONSTANT_MethodType = 16;
261+
final int CONSTANT_Dynamic = 17;
261262
final int CONSTANT_InvokeDynamic = 18;
262263

263264
ConstantPoolEntry[] constantPool = new ConstantPoolEntry[cursor.readUnsignedShort()];
@@ -319,6 +320,11 @@ private ConstantPoolEntry[] decodeConstantPool() {
319320
cursor.readUnsignedShort(); // descriptor_index
320321
break;
321322

323+
case CONSTANT_Dynamic:
324+
cursor.readUnsignedShort(); // bootstrap_method_attr_index
325+
cursor.readUnsignedShort(); // name_and_type_index
326+
break;
327+
322328
case CONSTANT_InvokeDynamic:
323329
cursor.readUnsignedShort(); // bootstrap_method_attr_index
324330
cursor.readUnsignedShort(); // name_and_type_index

0 commit comments

Comments
 (0)