--- old/src/share/vm/gc/shared/collectedHeap.hpp 2017-02-17 20:09:46.518094877 -0500 +++ new/src/share/vm/gc/shared/collectedHeap.hpp 2017-02-17 20:09:46.422089972 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 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 @@ -579,6 +579,25 @@ // Heap verification virtual void verify(VerifyOption option) = 0; + // Return true if concurrent phase control (via + // request_concurrent_phase_control) is supported by this collector. + // The default implementation returns false. + virtual bool supports_concurrent_phase_control() const; + + // Request the collector enter the indicated concurrent phase, and + // wait until it does so. Supports WhiteBox testing. Only one + // request may be active at a time. Phases are designated by name; + // the set of names and their meaning is GC-specific. Once the + // requested phase has been reached, the collector will attempt to + // avoid transitioning to a new phase until a new request is made. + // [Note: A collector might not be able to remain in a given phase. + // For example, a full collection might cancel an in-progress + // concurrent collection.] + // + // Returns true when the phase is reached. Returns false for an + // unknown phase. The default implementation returns false. + virtual bool request_concurrent_phase(const char* phase); + // Non product verification and debugging. #ifndef PRODUCT // Support for PromotionFailureALot. Return true if it's time to cause a