--- old/src/share/vm/code/codeCache.hpp 2017-07-25 14:10:55.349617051 +0200 +++ new/src/share/vm/code/codeCache.hpp 2017-07-25 14:10:55.241617054 +0200 @@ -181,6 +181,9 @@ static void scavenge_root_nmethods_do(CodeBlobToOopClosure* f); static nmethod* scavenge_root_nmethods() { return _scavenge_root_nmethods; } + // register_scavenge_root_nmethod() conditionally adds the nmethod to the list + // if it is not already on the list and has a scavengeable root + static void register_scavenge_root_nmethod(nmethod* nm); static void add_scavenge_root_nmethod(nmethod* nm); static void drop_scavenge_root_nmethod(nmethod* nm);