RFR: JDK-8318566: Heap walking functions should not use FilteredFieldStream [v2]
Alex Menkov
amenkov at openjdk.org
Thu Feb 1 23:07:11 UTC 2024
> FilteredFieldStream used by heap walking functions to iterate through klass/superclasses/interfaces fields are known to have poor performance (see [JDK-8317692](https://bugs.openjdk.org/browse/JDK-8317692) for details).
> Heap walking API implementation is the last user of the klasses.
> The fix reworks iteration through klass/superclasses/interfaces fields and drops FilteredFieldStream-related code.
> Additionally removed/updated includes of reflectionUtils.hpp.
>
> Testing:
> - tier1..4;
> - test/hotspot/jtreg/vmTestbase/nsk/jvmti (contains tests for different heap walking functions);
> - new test from #17580 (now the test runs several times faster).
Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:
remove recursion
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17661/files
- new: https://git.openjdk.org/jdk/pull/17661/files/5edae77e..c064abdf
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17661&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17661&range=00-01
Stats: 43 lines in 1 file changed: 18 ins; 23 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/17661.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17661/head:pull/17661
PR: https://git.openjdk.org/jdk/pull/17661
More information about the serviceability-dev
mailing list