[jdk25u-dev] RFR: 8356548: Use ClassFile API instead of ASM to transform classes in tests
Roland Mesde
duke at openjdk.org
Thu Feb 26 22:51:37 UTC 2026
Backporting JDK-8356548: Use ClassFile API instead of ASM to transform classes in tests.
This PR migrates HotSpot tests from using ASM to the ClassFile API for bytecode transformation to avoid the ongoing maintenance burden of updating ASM for future class file formats.
For parity with Oracle JDK.
Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
make test TEST=test/hotspot/jtreg/compiler/calls
make test TEST=test/hotspot/jtreg/compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java
make test TEST=test/hotspot/jtreg/runtime/MirrorFrame
make test TEST=test/hotspot/jtreg/serviceability/jvmti/RedefineClasses
make test TEST=test/hotspot/jtreg/vmTestbase/gc/g1/unloading
make test TEST=test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetClassFields
Results attached:
[windows-x64-specific-test.log](https://github.com/user-attachments/files/25589183/windows-x64-specific-test.log)
[windows-x64-specific-2-test.log](https://github.com/user-attachments/files/25589184/windows-x64-specific-2-test.log)
[windows-x64-specific-3-test.log](https://github.com/user-attachments/files/25589185/windows-x64-specific-3-test.log)
[windows-x64-specific-4-test.log](https://github.com/user-attachments/files/25589186/windows-x64-specific-4-test.log)
[windows-x64-specific-5-test.log](https://github.com/user-attachments/files/25589187/windows-x64-specific-5-test.log)
[windows-x64-specific-6-test.log](https://github.com/user-attachments/files/25589188/windows-x64-specific-6-test.log)
[macos-aarch64-specific-test.log](https://github.com/user-attachments/files/25589189/macos-aarch64-specific-test.log)
[macos-aarch64-specific-2-test.log](https://github.com/user-attachments/files/25589190/macos-aarch64-specific-2-test.log)
[macos-aarch64-specific-3-test.log](https://github.com/user-attachments/files/25589191/macos-aarch64-specific-3-test.log)
[macos-aarch64-specific-4-test.log](https://github.com/user-attachments/files/25589192/macos-aarch64-specific-4-test.log)
[macos-aarch64-specific-5-test.log](https://github.com/user-attachments/files/25589193/macos-aarch64-specific-5-test.log)
[macos-aarch64-specific-6-test.log](https://github.com/user-attachments/files/25589194/macos-aarch64-specific-6-test.log)
[linux-x64-specific-test.log](https://github.com/user-attachments/files/25589195/linux-x64-specific-test.log)
[linux-x64-specific-2-test.log](https://github.com/user-attachments/files/25589196/linux-x64-specific-2-test.log)
[linux-x64-specific-3-test.log](https://github.com/user-attachments/files/25589197/linux-x64-specific-3-test.log)
[linux-x64-specific-4-test.log](https://github.com/user-attachments/files/25589198/linux-x64-specific-4-test.log)
[linux-x64-specific-5-test.log](https://github.com/user-attachments/files/25589199/linux-x64-specific-5-test.log)
[linux-x64-specific-6-test.log](https://github.com/user-attachments/files/25589200/linux-x64-specific-6-test.log)
[linux-aarch64-specific-test.log](https://github.com/user-attachments/files/25589201/linux-aarch64-specific-test.log)
[linux-aarch64-specific-2-test.log](https://github.com/user-attachments/files/25589202/linux-aarch64-specific-2-test.log)
[linux-aarch64-specific-3-test.log](https://github.com/user-attachments/files/25589203/linux-aarch64-specific-3-test.log)
[linux-aarch64-specific-4-test.log](https://github.com/user-attachments/files/25589204/linux-aarch64-specific-4-test.log)
[linux-aarch64-specific-5-test.log](https://github.com/user-attachments/files/25589205/linux-aarch64-specific-5-test.log)
[linux-aarch64-specific-6-test.log](https://github.com/user-attachments/files/25589206/linux-aarch64-specific-6-test.log)
-------------
Commit messages:
- Backport 3248aaf3c4f6784d5176e2a2c5bac0fbda47ee6b
Changes: https://git.openjdk.org/jdk25u-dev/pull/317/files
Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=317&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8356548
Stats: 608 lines in 24 files changed: 92 ins; 302 del; 214 mod
Patch: https://git.openjdk.org/jdk25u-dev/pull/317.diff
Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/317/head:pull/317
PR: https://git.openjdk.org/jdk25u-dev/pull/317
More information about the jdk-updates-dev
mailing list