1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp Wed Apr 10 13:27:35 2013 +0200 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp Wed Apr 10 10:57:34 2013 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -671,34 +671,36 @@ 1.11 1.12 bool need_to_start_conc_mark(const char* source, size_t alloc_word_size = 0); 1.13 1.14 - // Update the heuristic info to record a collection pause of the given 1.15 - // start time, where the given number of bytes were used at the start. 1.16 - // This may involve changing the desired size of a collection set. 1.17 + // Record the start and end of an evacuation pause. 1.18 + void record_collection_pause_start(double start_time_sec); 1.19 + void record_collection_pause_end(double pause_time_ms); 1.20 1.21 - void record_stop_world_start(); 1.22 - 1.23 - void record_collection_pause_start(double start_time_sec, size_t start_used); 1.24 + // Record the start and end of a full collection. 1.25 + void record_full_collection_start(); 1.26 + void record_full_collection_end(); 1.27 1.28 // Must currently be called while the world is stopped. 1.29 - void record_concurrent_mark_init_end(double 1.30 - mark_init_elapsed_time_ms); 1.31 + void record_concurrent_mark_init_end(double mark_init_elapsed_time_ms); 1.32 1.33 + // Record start and end of remark. 1.34 void record_concurrent_mark_remark_start(); 1.35 void record_concurrent_mark_remark_end(); 1.36 1.37 + // Record start, end, and completion of cleanup. 1.38 void record_concurrent_mark_cleanup_start(); 1.39 void record_concurrent_mark_cleanup_end(int no_of_gc_threads); 1.40 void record_concurrent_mark_cleanup_completed(); 1.41 1.42 - void record_concurrent_pause(); 1.43 + // Records the information about the heap size for reporting in 1.44 + // print_detailed_heap_transition 1.45 + void record_heap_size_info_at_start(); 1.46 1.47 - void record_collection_pause_end(double pause_time); 1.48 + // Print heap sizing transition (with less and more detail). 1.49 void print_heap_transition(); 1.50 void print_detailed_heap_transition(); 1.51 1.52 - // Record the fact that a full collection occurred. 1.53 - void record_full_collection_start(); 1.54 - void record_full_collection_end(); 1.55 + void record_stop_world_start(); 1.56 + void record_concurrent_pause(); 1.57 1.58 // Record how much space we copied during a GC. This is typically 1.59 // called when a GC alloc region is being retired.