RFR: 8338490: Serial: Move Generation::print_on to subclasses
Albert Mingkun Yang
ayang at openjdk.org
Fri Aug 16 07:11:58 UTC 2024
Trivial inlining a virtual method to subclasses and some cleanup to related methods.
The gc-log is slightly updated due to the change of the name of generations. Log before&after shown below:
# baseline
[2.417s][debug][gc,heap] GC(0) def new generation total 153600K, used 76645K [0x000000060d800000, 0x0000000617ea0000, 0x00000006b3aa0000)
[2.417s][debug][gc,heap] GC(0) eden space 136576K, 56% used [0x000000060d800000, 0x00000006122d9538, 0x0000000615d60000)
[2.417s][debug][gc,heap] GC(0) from space 17024K, 0% used [0x0000000615d60000, 0x0000000615d60000, 0x0000000616e00000)
[2.417s][debug][gc,heap] GC(0) to space 17024K, 0% used [0x0000000616e00000, 0x0000000616e00000, 0x0000000617ea0000)
[2.417s][debug][gc,heap] GC(0) tenured generation total 341376K, used 0K [0x00000006b3aa0000, 0x00000006c8800000, 0x0000000800000000)
[2.417s][debug][gc,heap] GC(0) the space 341376K, 0% used [0x00000006b3aa0000, 0x00000006b3aa0000, 0x00000006c8800000)
# new
[9.846s][debug][gc,heap] GC(0) DefNew total 153600K, used 71165K [0x000000060d800000, 0x0000000617ea0000, 0x00000006b3aa0000)
[9.846s][debug][gc,heap] GC(0) eden space 136576K, 52% used [0x000000060d800000, 0x0000000611d7f708, 0x0000000615d60000)
[9.846s][debug][gc,heap] GC(0) from space 17024K, 0% used [0x0000000615d60000, 0x0000000615d60000, 0x0000000616e00000)
[9.846s][debug][gc,heap] GC(0) to space 17024K, 0% used [0x0000000616e00000, 0x0000000616e00000, 0x0000000617ea0000)
[9.846s][debug][gc,heap] GC(0) Tenured total 341376K, used 0K [0x00000006b3aa0000, 0x00000006c8800000, 0x0000000800000000)
[9.846s][debug][gc,heap] GC(0) the space 341376K, 0% used [0x00000006b3aa0000, 0x00000006b3aa0000, 0x00000006c8800000)
-------------
Commit messages:
- s1-print-on
Changes: https://git.openjdk.org/jdk/pull/20607/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20607&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8338490
Stats: 55 lines in 7 files changed: 16 ins; 26 del; 13 mod
Patch: https://git.openjdk.org/jdk/pull/20607.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20607/head:pull/20607
PR: https://git.openjdk.org/jdk/pull/20607
More information about the hotspot-gc-dev
mailing list