RFR (S) 8227370 Remove SharedPathsMiscInfo

Ioi Lam ioi.lam at oracle.com
Thu Aug 22 15:27:48 UTC 2019


For the 3 types of items stored in SharedPathsMiscInfo


These are used only for tracing. I reimplemented the tracing
functionality in FileMapInfo::log_paths()


It turns out we don't need to keep track of non-existent paths from the
dump-time path.  We can simply eliminate all the non-existent paths from
both the dump-time and runtime paths, and check that the remaining files
match. E.g.,

dump: -cp a.jar:NE1:NE2:b.jar
run 1: -cp NE3:a.jar:NE4:b.jar
run 2: -cp x.jar:NE4:b.jar

after elimination:

dump = a.jar:b.jar
run 1 = a.jar:b.jar -> matched
run 2 = x.jar:b.jar -> mismatched

The dump-time elimination was already done in 
The run-time elimination was already done in 

So essentially I just tied things together and wrote a few more test cases
in NonExistClasspath.java

Testing: hs-tier{1,2,3}

More information about the hotspot-runtime-dev mailing list