src/hotspot/share/gc/g1/heterogeneousHeapRegionManager.cpp
changeset 59060 fce1fa1bdc91
parent 53116 bb03098c4dde
equal deleted inserted replaced
59059:27a266d5fb13 59060:fce1fa1bdc91
     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()) {