The change for JDK-8317440 lowered the rank of the ConcurrentHashtableResize_lock, but now it's lower than tty. This makes PrintSystemDictionaryAtExit assert with:
# Internal Error (/scratch/cphillim/hg/jdk-linkage/open/src/hotspot/share/runtime/mutex.cpp:447), pid=2821830, tid=2821831
# assert(false) failed: Attempting to acquire lock tty_lock/tty out of order with lock ConcurrentHashTableResize_lock/service-1 -- possible deadlock
At the time of JDK-8317440 we discussed having each CHT have their own resize lock ranking specified on construction. We should have done that.