Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 2152:0fa27f37d4d4
6977804: G1: remove the zero-filling thread
Summary: This changeset removes the zero-filling thread from G1 and collapses the two free region lists we had before (the "free" and "unclean" lists) into one. The new free list uses the new heap region sets / lists abstractions that we'll ultimately use it to keep track of all regions in the heap. A heap region set was also introduced for the humongous regions. Finally, this change increases the concurrency between the thread that completes freeing regions (after a cleanup pause) and the rest of the system (before we'd have to wait for said thread to complete before allocating a new region). The changest also includes a lot of refactoring and code simplification.
Reviewed-by: jcoomes, johnc
author | tonyp |
---|---|
date | Wed, 19 Jan 2011 19:30:42 -0500 |
parents | 016a3628c885 |
children | c33825b68624 |
comparison
equal
deleted
inserted
replaced
2151:cb913d743d09 | 2152:0fa27f37d4d4 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2001, 2011, 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. |
2873 _collection_set_size = 0; | 2873 _collection_set_size = 0; |
2874 | 2874 |
2875 // Adjust for expansion and slop. | 2875 // Adjust for expansion and slop. |
2876 max_live_bytes = max_live_bytes + expansion_bytes; | 2876 max_live_bytes = max_live_bytes + expansion_bytes; |
2877 | 2877 |
2878 assert(_g1->regions_accounted_for(), "Region leakage!"); | |
2879 | |
2880 HeapRegion* hr; | 2878 HeapRegion* hr; |
2881 if (in_young_gc_mode()) { | 2879 if (in_young_gc_mode()) { |
2882 double young_start_time_sec = os::elapsedTime(); | 2880 double young_start_time_sec = os::elapsedTime(); |
2883 | 2881 |
2884 if (G1PolicyVerbose > 0) { | 2882 if (G1PolicyVerbose > 0) { |