/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "gc_implementation/g1/concurrentMark.hpp"
#include "gc_implementation/g1/g1CollectedHeap.hpp"
#include "gc_implementation/g1/g1AllocRegion.inline.hpp"
#include "gc_implementation/g1/g1CollectorPolicy.hpp"
#include "gc_implementation/g1/heapRegionSeq.inline.hpp"
#include "utilities/taskqueue.hpp"
// Inline functions for G1CollectedHeap
template <class T>
inline HeapRegion*
// hr can be null if addr in perm_gen
}
return hr;
}
template <class T>
inline HeapRegion*
return res;
}
return r != NULL && r->in_collection_set();
}
inline HeapWord*
unsigned int* gc_count_before_ret) {
"be called for humongous allocation requests");
false /* bot_updates */);
}
}
return result;
}
word_size) {
"we should not be seeing humongous-size allocations in this path");
false /* bot_updates */);
false /* bot_updates */);
}
}
return result;
}
"we should not be seeing humongous-size allocations in this path");
true /* bot_updates */);
true /* bot_updates */);
}
return result;
}
// It dirties the cards that cover the block so that so that the post
// write barrier never queues anything when updating objects on this
// block. It is assumed (and in fact we assert) that the block
// belongs to a young region.
inline void
// Assign the containing region to containing_hr so that we don't
// have to keep calling heap_region_containing_raw() in the
// asserts below.
"pre-condition");
}
return _task_queues->queue(i);
}
}
}
#ifndef PRODUCT
// Support for G1EvacuationFailureALot
inline bool
bool during_initial_mark,
bool during_marking) {
bool res = false;
if (during_marking) {
}
if (during_initial_mark) {
}
if (gcs_are_young) {
} else {
// GCs are mixed
}
return res;
}
inline void
if (G1EvacuationFailureALot) {
// Note we can't assert that _evacuation_failure_alot_for_current_gc
// is clear here. It may have been set during a previous GC but that GC
// did not copy enough objects (i.e. G1EvacuationFailureALotCount) to
// trigger an evacuation failure and clear the flags and and counts.
// Check if we have gone over the interval.
// Now check if G1EvacuationFailureALot is enabled for the current GC type.
}
}
inline bool
return false;
}
// G1EvacuationFailureALot is in effect for current GC
// Access to _evacuation_failure_alot_count is not atomic;
// the value does not have to be exact.
return false;
}
return true;
}
if (G1EvacuationFailureALot) {
}
}
#endif // #ifndef PRODUCT
#endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTEDHEAP_INLINE_HPP