Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/heapRegionSeq.hpp @ 2149:7e37af9d69ef
7011379: G1: overly long concurrent marking cycles
Summary: This changeset introduces filtering of SATB buffers at the point when they are about to be enqueued. If this filtering clears enough entries on each buffer, the buffer can then be re-used and not enqueued. This cuts down the number of SATB buffers that need to be processed by the concurrent marking threads.
Reviewed-by: johnc, ysr
author | tonyp |
---|---|
date | Wed, 19 Jan 2011 09:35:17 -0500 |
parents | f95d63e2154a |
children | 0fa27f37d4d4 |
comparison
equal
deleted
inserted
replaced
2137:ffd725ff6943 | 2149:7e37af9d69ef |
---|---|
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. |
104 // "num_regions_deleted" to the number of regions deleted. | 104 // "num_regions_deleted" to the number of regions deleted. |
105 MemRegion shrink_by(size_t shrink_bytes, size_t& num_regions_deleted); | 105 MemRegion shrink_by(size_t shrink_bytes, size_t& num_regions_deleted); |
106 | 106 |
107 // If "addr" falls within a region in the sequence, return that region, | 107 // If "addr" falls within a region in the sequence, return that region, |
108 // or else NULL. | 108 // or else NULL. |
109 HeapRegion* addr_to_region(const void* addr); | 109 inline HeapRegion* addr_to_region(const void* addr); |
110 | 110 |
111 void print(); | 111 void print(); |
112 | 112 |
113 // Prints out runs of empty regions. | 113 // Prints out runs of empty regions. |
114 void print_empty_runs(); | 114 void print_empty_runs(); |