< prev index next >
src/hotspot/share/gc/g1/g1FromCardCache.cpp
Print this page
rev 50098 : [mq]: 8202842-g1-footprint-regressions
rev 50099 : [mq]: 8202842-team-review
*** 1,7 ****
/*
! * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 45,55 ****
--- 45,57 ----
#endif
_cache = Padded2DArray<uintptr_t, mtGC>::create_unfreeable(_max_regions,
num_par_rem_sets,
&_static_mem_size);
+ if (AlwaysPreTouch) {
invalidate(0, _max_regions);
+ }
}
void G1FromCardCache::invalidate(uint start_idx, size_t new_num_regions) {
guarantee((size_t)start_idx + new_num_regions <= max_uintx,
"Trying to invalidate beyond maximum region, from %u size " SIZE_FORMAT,
< prev index next >