Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-09-27 Thread Afshin Zafari
On Tue, 26 Sep 2023 21:08:36 GMT, Coleen Phillimore wrote: >> Afshin Zafari has updated the pull request incrementally with one additional >> commit since the last revision: >> >> MetaspaceSize and its lower bound is used. > > This looks good to me. Thank you @coleenp and @dholmes-ora for yo

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-09-26 Thread Coleen Phillimore
On Tue, 26 Sep 2023 08:35:10 GMT, Afshin Zafari wrote: >> 1. `ArrayAllocatorMallocLimit` is removed. The test cases that tested it >> also are removed. >> 2. `AllocArrayAllocator` instances are replaced with `MallocArrayAllocator`. >> 3. The signature of `CHeapBitMap::free(ptr, size)` is kept as

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-09-26 Thread David Holmes
On Tue, 26 Sep 2023 08:35:10 GMT, Afshin Zafari wrote: >> 1. `ArrayAllocatorMallocLimit` is removed. The test cases that tested it >> also are removed. >> 2. `AllocArrayAllocator` instances are replaced with `MallocArrayAllocator`. >> 3. The signature of `CHeapBitMap::free(ptr, size)` is kept as

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-09-26 Thread Afshin Zafari
> 1. `ArrayAllocatorMallocLimit` is removed. The test cases that tested it also > are removed. > 2. `AllocArrayAllocator` instances are replaced with `MallocArrayAllocator`. > 3. The signature of `CHeapBitMap::free(ptr, size)` is kept as it is, since it > is called in this way from `GrowableBitMa

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-05-22 Thread Thomas Stuefe
On Thu, 12 Jan 2023 16:52:50 GMT, Thomas Stuefe wrote: >> Curious, I always thought we do ArrayAllocator - using mmap for larger >> allocations - to prevent memory retention for libc variants whose allocators >> are "grabby", i.e. which don't promptly return memory to the OS on free(). >> E.g.

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-05-22 Thread Ioi Lam
On Thu, 12 Jan 2023 16:52:50 GMT, Thomas Stuefe wrote: >> Curious, I always thought we do ArrayAllocator - using mmap for larger >> allocations - to prevent memory retention for libc variants whose allocators >> are "grabby", i.e. which don't promptly return memory to the OS on free(). >> E.g.

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-20 Thread Tyler Steele
On Wed, 11 Jan 2023 18:10:47 GMT, Justin King wrote: > This leaves at least AIX as a potential problem. @backwaterred, does the AIX > libc malloc() still exclusively use the data segment? Does free'd memory > still stick to the process? I agree with @coleenp that AIX seems to still use the dat

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-13 Thread Justin King
On Wed, 11 Jan 2023 15:08:23 GMT, Stefan Karlsson wrote: >>> I'm happy to see this flag getting removed. I'm less happy about seeing >>> usages of the array allocators being replaced by macros. I'd rather see an >>> effort towards getting rid of these macros. Could we limit this patch to >>> o

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-12 Thread Thomas Stuefe
On Wed, 11 Jan 2023 14:49:59 GMT, Thomas Stuefe wrote: >> Justin King has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Initialize memory to zero in zGranuleMap >> >> Signed-off-by: Justin King > > Curious, I always thought we do Arr

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-11 Thread Justin King
On Wed, 11 Jan 2023 14:49:59 GMT, Thomas Stuefe wrote: >> Justin King has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Initialize memory to zero in zGranuleMap >> >> Signed-off-by: Justin King > > Curious, I always thought we do Arr

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-11 Thread Coleen Phillimore
On Wed, 11 Jan 2023 14:49:59 GMT, Thomas Stuefe wrote: >> Justin King has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Initialize memory to zero in zGranuleMap >> >> Signed-off-by: Justin King > > Curious, I always thought we do Arr

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-11 Thread Justin King
On Wed, 11 Jan 2023 14:49:59 GMT, Thomas Stuefe wrote: > Curious, I always thought we do ArrayAllocator - using mmap for larger > allocations - to prevent memory retention for libc variants whose allocators > are "grabby", i.e. which don't promptly return memory to the OS on free(). > E.g. bec

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-11 Thread Justin King
On Wed, 11 Jan 2023 15:08:23 GMT, Stefan Karlsson wrote: > > ArrayAllocator with ArrayAllocatorMallocLimit removed is effectively > > MallocArrayAllocator. Are you suggesting leaving MallocArrayAllocator and > > MmapArrayAllocator thus update references to ArrayAllocator to be > > MallocArrayA

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-11 Thread Stefan Karlsson
On Wed, 11 Jan 2023 14:27:44 GMT, Justin King wrote: > ArrayAllocator with ArrayAllocatorMallocLimit removed is effectively > MallocArrayAllocator. Are you suggesting leaving MallocArrayAllocator and > MmapArrayAllocator thus update references to ArrayAllocator to be > MallocArrayAllocator? Y

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-11 Thread Thomas Stuefe
On Tue, 10 Jan 2023 22:50:11 GMT, Justin King wrote: >> Remove abstraction that is a holdover from Solaris. Direct usages of >> `MmapArrayAllocator` have been switched to normal `malloc`. The >> justification is that none of the code paths are called from signal >> handlers, so using `mmap` di

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-11 Thread Justin King
On Wed, 11 Jan 2023 10:05:33 GMT, Stefan Karlsson wrote: > I'm happy to see this flag getting removed. I'm less happy about seeing > usages of the array allocators being replaced by macros. I'd rather see an > effort towards getting rid of these macros. Could we limit this patch to only > remo

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-11 Thread Stefan Karlsson
On Tue, 10 Jan 2023 22:50:11 GMT, Justin King wrote: >> Remove abstraction that is a holdover from Solaris. Direct usages of >> `MmapArrayAllocator` have been switched to normal `malloc`. The >> justification is that none of the code paths are called from signal >> handlers, so using `mmap` di

Re: RFR: 8299915: Remove ArrayAllocatorMallocLimit and associated code [v4]

2023-01-10 Thread Justin King
> Remove abstraction that is a holdover from Solaris. Direct usages of > `MmapArrayAllocator` have been switched to normal `malloc`. The justification > is that none of the code paths are called from signal handlers, so using > `mmap` directly does not make sense and is potentially slower than g