equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2018, 2019, 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. |
261 } |
261 } |
262 #endif |
262 #endif |
263 return num_regions_found; |
263 return num_regions_found; |
264 } |
264 } |
265 |
265 |
266 HeapRegion* HeterogeneousHeapRegionManager::allocate_free_region(HeapRegionType type) { |
266 HeapRegion* HeterogeneousHeapRegionManager::allocate_free_region(HeapRegionType type, uint node_index) { |
267 |
267 |
268 // We want to prevent mutators from proceeding when we have borrowed regions from the last collection. This |
268 // We want to prevent mutators from proceeding when we have borrowed regions from the last collection. This |
269 // will force a full collection to remedy the situation. |
269 // will force a full collection to remedy the situation. |
270 // Free region requests from GC threads can proceed. |
270 // Free region requests from GC threads can proceed. |
271 if(type.is_eden() || type.is_humongous()) { |
271 if(type.is_eden() || type.is_humongous()) { |