--- old/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp 2013-06-19 12:28:45.124391728 -0700 +++ new/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp 2013-06-19 12:28:44.896250383 -0700 @@ -1639,11 +1639,13 @@ virtual void unregister_nmethod(nmethod* nm); // Migrate the nmethods in the code root lists of the regions - // in the collection set to regions in to-space + // in the collection set to regions in to-space. In the event + // of an evacuation failure, nmethods that reference objects + // that were not successfullly evacuated are not migrated. void migrate_strong_code_roots(); - // During an initial mark pause, mark the strong code roots that - // point into the heap. + // During an initial mark pause, mark all the code roots that + // point into regions *not* in the collection set. void mark_strong_code_roots(uint worker_id); // Rebuild the stong code root lists for each region