RFR: 8324584: Optimize Symbol and char* handling in ClassLoader
Matias Saavedra Silva
matsaave at openjdk.org
Wed Feb 7 22:27:13 UTC 2024
The call to `ClassLoader::load_class()` currently takes a Symbol* for the name and later extracts the string only to change it back into a Symbol* inside `ClassLoader::search_module_entries()` while also recalculating the package entry. This patch simply passes the string directly along with the package entry from the caller. Verified with tier1-5 tests.
-------------
Commit messages:
- Passed package entry in arguments
- Merge branch 'master' into optimize_symbol_char_handling_8324584
- 8324584: Optimize Symbol and char* handling in ClassLoader
Changes: https://git.openjdk.org/jdk/pull/17761/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17761&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8324584
Stats: 12 lines in 3 files changed: 2 ins; 3 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/17761.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17761/head:pull/17761
PR: https://git.openjdk.org/jdk/pull/17761
More information about the hotspot-runtime-dev
mailing list