jdk.hotspot.agent/sun.jvm.hotspot.utilities.RBTree - RB Tree Test

Q

How to run "jdk.hotspot.agent/sun.jvm.hotspot.utilities.RBTree" test from JDK lib\modules JImage file?

✍: FYIcenter

A

"jdk.hotspot.agent/sun.jvm.hotspot.utilities.RBTree" tool allows you to run a RB Tree test program.

"jdk.hotspot.agent/sun.jvm.hotspot.utilities.RBTree" tool is supported by the jmods\jdk.hotspot.agent.jmod module file, which is also linked into the lib\modules JImage file in JDK 9, 10, and 11.

You can run the "jdk.hotspot.agent/sun.jvm.hotspot.utilities.RBTree" tool using the lib\modules JImage file as described below using JDK 11 as an example:

C:\fyicenter>set JDK_HOME=\fyicenter\jdk-11.0.1

C:\fyicenter>%JDK_HOME%\bin\java --module jdk.hotspot.agent/sun.jvm.hotspot.utilities.RBTree

Building tree...
100...200...300...400...500...600...700...800...900...1000...1100...1200...1300...
1400...1500...1600...1700...1800...1900...2000...2100...2200...2300...2400...2500...
2600...2700...2800...2900...3000...3100...3200...3300...3400...3500...3600...3700...
3800...3900...4000...4100...4200...4300...4400...4500...4600...4700...4800...4900...
5000...5100...5200...5300...5400...5500...5600...5700...5800...5900...6000...6100...
6200...6300...6400...6500...6600...6700...6800...6900...7000...7100...7200...7300...
7400...7500...7600...7700...7800...7900...8000...8100...8200...8300...8400...8500...
8600...8700...8800...8900...9000...9100...9200...9300...9400...9500...9600...9700...
9800...9900...
Churning tree...
Iteration 0:
- 4462 (black)
  - 1619 (red)
    - 566 (black)
      - 320 (black)
        - 134 (black)
          - 75 (red)
            - 43 (black)
              - 19 (red)
                - 11 (black)
                  - 7 (red)
                    - 2 (black)
                      - 1 (black)
                        - 1 (red)
                          -
                          -
                        - 1 (red)
                          -
                          -
                      - 5 (black)
                        - 3 (red)
                          -
                          -
                        - 6 (red)
                          -
                          -
                    - 9 (black)
                      - 7 (black)
                        -
                        -
                      - 10 (red)
                        - 9 (black)
                          -
                          - 9 (red)
                            -
                            -
                        - 10 (black)
                          -
                          -
...

 

jdk.internal.le/jdk.internal.jline.console.internal.ConsoleRunner - Console Runner

jdk.hotspot.agent/sun.jvm.hotspot.tools.SysPropsDumper - JVM Properties Dumper

Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-08-23, 259👍, 0💬