equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2017, 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. |
51 _failure_waste = 0; |
51 _failure_waste = 0; |
52 } |
52 } |
53 |
53 |
54 virtual void log_plab_allocation(); |
54 virtual void log_plab_allocation(); |
55 |
55 |
|
56 virtual size_t compute_desired_plab_sz(); |
|
57 |
56 public: |
58 public: |
57 G1EvacStats(const char* description, size_t desired_plab_sz_, unsigned wt); |
59 G1EvacStats(const char* description, size_t desired_plab_sz_, unsigned wt); |
58 |
60 |
59 ~G1EvacStats(); |
61 ~G1EvacStats(); |
60 |
|
61 virtual void adjust_desired_plab_sz(); |
|
62 |
62 |
63 uint regions_filled() const { return _regions_filled; } |
63 uint regions_filled() const { return _regions_filled; } |
64 size_t region_end_waste() const { return _region_end_waste; } |
64 size_t region_end_waste() const { return _region_end_waste; } |
65 size_t direct_allocated() const { return _direct_allocated; } |
65 size_t direct_allocated() const { return _direct_allocated; } |
66 |
66 |