mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7157073: G1: type change size_t -> uint for region counts / indexes
Change the type of fields / variables / etc. that represent region counts and indeces from size_t to uint. Reviewed-by: iveresov, brutisso, jmasa, jwilhelm
This commit is contained in:
parent
99802ac63d
commit
01ea4199c7
28 changed files with 432 additions and 440 deletions
|
@ -329,13 +329,13 @@ public:
|
|||
|
||||
// Declare the heap size (in # of regions) to the HeapRegionRemSet(s).
|
||||
// (Uses it to initialize from_card_cache).
|
||||
static void init_heap(size_t max_regions) {
|
||||
OtherRegionsTable::init_from_card_cache(max_regions);
|
||||
static void init_heap(uint max_regions) {
|
||||
OtherRegionsTable::init_from_card_cache((size_t) max_regions);
|
||||
}
|
||||
|
||||
// Declares that only regions i s.t. 0 <= i < new_n_regs are in use.
|
||||
static void shrink_heap(size_t new_n_regs) {
|
||||
OtherRegionsTable::shrink_from_card_cache(new_n_regs);
|
||||
static void shrink_heap(uint new_n_regs) {
|
||||
OtherRegionsTable::shrink_from_card_cache((size_t) new_n_regs);
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue