equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2016, 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. |
97 |
97 |
98 virtual void update_marking_length(double marking_length_s) { |
98 virtual void update_marking_length(double marking_length_s) { |
99 assert(marking_length_s > 0.0, "Marking length must be larger than zero but is %.3f", marking_length_s); |
99 assert(marking_length_s > 0.0, "Marking length must be larger than zero but is %.3f", marking_length_s); |
100 _last_marking_length_s = marking_length_s; |
100 _last_marking_length_s = marking_length_s; |
101 } |
101 } |
102 |
|
103 #ifndef PRODUCT |
|
104 static void test(); |
|
105 #endif |
|
106 }; |
102 }; |
107 |
103 |
108 // This algorithm tries to return a concurrent mark starting occupancy value that |
104 // This algorithm tries to return a concurrent mark starting occupancy value that |
109 // makes sure that during marking the given target occupancy is never exceeded, |
105 // makes sure that during marking the given target occupancy is never exceeded, |
110 // based on predictions of current allocation rate and time periods between |
106 // based on predictions of current allocation rate and time periods between |
146 virtual void update_allocation_info(double allocation_time_s, size_t allocated_bytes, size_t additional_buffer_size); |
142 virtual void update_allocation_info(double allocation_time_s, size_t allocated_bytes, size_t additional_buffer_size); |
147 virtual void update_marking_length(double marking_length_s); |
143 virtual void update_marking_length(double marking_length_s); |
148 |
144 |
149 virtual void print(); |
145 virtual void print(); |
150 virtual void send_trace_event(G1NewTracer* tracer); |
146 virtual void send_trace_event(G1NewTracer* tracer); |
151 #ifndef PRODUCT |
|
152 static void test(); |
|
153 #endif |
|
154 }; |
147 }; |
155 |
148 |
156 #endif // SHARE_VM_GC_G1_G1IHOPCONTROL_HPP |
149 #endif // SHARE_VM_GC_G1_G1IHOPCONTROL_HPP |