equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 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. |
131 // completed buffers exist, returns false. If a completed buffer exists, |
131 // completed buffers exist, returns false. If a completed buffer exists, |
132 // but is only partially completed before a "yield" happens, the |
132 // but is only partially completed before a "yield" happens, the |
133 // partially completed buffer (with its processed elements set to NULL) |
133 // partially completed buffer (with its processed elements set to NULL) |
134 // is returned to the completed buffer set, and this call returns false. |
134 // is returned to the completed buffer set, and this call returns false. |
135 bool apply_closure_to_completed_buffer(CardTableEntryClosure* cl, |
135 bool apply_closure_to_completed_buffer(CardTableEntryClosure* cl, |
136 uint worker_i = 0, |
136 uint worker_i, |
137 int stop_at = 0, |
137 int stop_at, |
138 bool during_pause = false); |
138 bool during_pause); |
139 |
|
140 // Helper routine for the above. |
|
141 bool apply_closure_to_completed_buffer_helper(CardTableEntryClosure* cl, |
|
142 uint worker_i, |
|
143 BufferNode* nd); |
|
144 |
139 |
145 BufferNode* get_completed_buffer(int stop_at); |
140 BufferNode* get_completed_buffer(int stop_at); |
146 |
141 |
147 // Applies the current closure to all completed buffers, |
142 // Applies the current closure to all completed buffers, |
148 // non-consumptively. |
143 // non-consumptively. |