1 /* |
1 /* |
2 * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
4006 double pause_start_sec = os::elapsedTime(); |
4006 double pause_start_sec = os::elapsedTime(); |
4007 g1_policy()->phase_times()->note_gc_start(active_workers, mark_in_progress()); |
4007 g1_policy()->phase_times()->note_gc_start(active_workers, mark_in_progress()); |
4008 log_gc_header(); |
4008 log_gc_header(); |
4009 |
4009 |
4010 TraceCollectorStats tcs(g1mm()->incremental_collection_counters()); |
4010 TraceCollectorStats tcs(g1mm()->incremental_collection_counters()); |
4011 TraceMemoryManagerStats tms(false /* fullGC */, gc_cause()); |
4011 TraceMemoryManagerStats tms(false /* fullGC */, gc_cause(), |
|
4012 yc_type() == Mixed /* allMemoryPoolsAffected */); |
4012 |
4013 |
4013 // If the secondary_free_list is not empty, append it to the |
4014 // If the secondary_free_list is not empty, append it to the |
4014 // free_list. No need to wait for the cleanup operation to finish; |
4015 // free_list. No need to wait for the cleanup operation to finish; |
4015 // the region allocation code will check the secondary_free_list |
4016 // the region allocation code will check the secondary_free_list |
4016 // and wait if necessary. If the G1StressConcRegionFreeing flag is |
4017 // and wait if necessary. If the G1StressConcRegionFreeing flag is |