--- old/src/share/vm/gc/g1/g1RootClosures.cpp 2017-02-22 11:01:50.453049463 +0100 +++ new/src/share/vm/gc/g1/g1RootClosures.cpp 2017-02-22 11:01:50.343046150 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -59,7 +59,7 @@ // The treatment of "weak" roots is selectable through the template parameter, // this is usually used to control unloading of classes and interned strings. template -class G1InitalMarkClosures : public G1EvacuationRootClosures { +class G1InitialMarkClosures : public G1EvacuationRootClosures { G1SharedClosures _strong; G1SharedClosures _weak; @@ -74,8 +74,8 @@ } public: - G1InitalMarkClosures(G1CollectedHeap* g1h, - G1ParScanThreadState* pss) : + G1InitialMarkClosures(G1CollectedHeap* g1h, + G1ParScanThreadState* pss) : _strong(g1h, pss, /* process_only_dirty_klasses */ false, /* must_claim_cld */ true), _weak(g1h, pss, /* process_only_dirty_klasses */ false, /* must_claim_cld */ true) {} @@ -118,9 +118,9 @@ if (g1h->collector_state()->during_initial_mark_pause()) { if (ClassUnloadingWithConcurrentMark) { - res = new G1InitalMarkClosures(g1h, pss); + res = new G1InitialMarkClosures(g1h, pss); } else { - res = new G1InitalMarkClosures(g1h, pss); + res = new G1InitialMarkClosures(g1h, pss); } } else { res = new G1EvacuationClosures(g1h, pss, g1h->collector_state()->gcs_are_young());