src/share/vm/memory/collectorPolicy.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/memory/collectorPolicy.hpp Wed Jan 15 01:41:53 2014
--- new/src/share/vm/memory/collectorPolicy.hpp Wed Jan 15 01:41:52 2014
*** 74,87 ****
--- 74,87 ----
size_t _space_alignment;
size_t _heap_alignment;
// Needed to keep information if MaxHeapSize was set on the command line
! // when the flag value is aligned etc by ergonomics.
bool _max_heap_size_cmdline;
! // The sizing of the heap are controlled by a sizing policy.
! // The sizing of the heap is controlled by a sizing policy.
AdaptiveSizePolicy* _size_policy;
// Set to true when policy wants soft refs cleared.
// Reset to false by gc after it clears all soft refs.
bool _should_clear_all_soft_refs;
*** 100,110 ****
--- 100,110 ----
initialize_alignments();
initialize_flags();
initialize_size_info();
}
! // Return maximum heap alignment that may be imposed by the policy.
static size_t compute_heap_alignment();
size_t space_alignment() { return _space_alignment; }
size_t heap_alignment() { return _heap_alignment; }
*** 178,188 ****
--- 178,188 ----
// failure.
virtual MetaWord* satisfy_failed_metadata_allocation(ClassLoaderData* loader_data,
size_t size,
Metaspace::MetadataType mdtype);
! // Performace Counter support
! // Performance Counter support
GCPolicyCounters* counters() { return _gc_policy_counters; }
// Create the jstat counters for the GC policy. By default, policy's
// don't have associated counters, and we complain if this is invoked.
virtual void initialize_gc_policy_counters() {
*** 229,241 ****
--- 229,240 ----
// time. When using large pages they can differ.
size_t _gen_alignment;
GenerationSpec **_generations;
! // Return true if an allocation should be attempted in the older generation
// generation if it fails in the younger generation. Return
// false, otherwise.
+ // if it fails in the younger generation. Return false, otherwise.
virtual bool should_try_older_generation_allocation(size_t word_size) const;
void initialize_flags();
void initialize_size_info();
*** 243,261 ****
--- 242,260 ----
DEBUG_ONLY(void assert_size_info();)
// Try to allocate space by expanding the heap.
virtual HeapWord* expand_heap_and_allocate(size_t size, bool is_tlab);
! // Compute max heap alignment.
size_t compute_max_alignment();
// Scale the base_size by NewRatio according to
// result = base_size / (NewRatio + 1)
// and align by min_alignment()
size_t scale_by_NewRatio_aligned(size_t base_size);
! // Bound the value by the given maximum minus the min_alignment.
size_t bound_minus_alignment(size_t desired_size, size_t maximum_size);
public:
GenCollectorPolicy();
src/share/vm/memory/collectorPolicy.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File