Home » Community » U++ community news and announcements » Core 2019
Re: Core 2019 [message #52197 is a reply to message #52063] |
Thu, 08 August 2019 21:47 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
I checked "Heap implementation" article from "Help Topics" (which for some reason is not published on web), and it looks like it doesn't match current state of the allocator.
I'm trying to get minimum value of alignment of allocated memory. From a simple test below
size_t sz = 0;
void* m = nullptr;
m = MemoryAlloc(1);
sz = GetMemoryBlockSize(m);
m = MemoryAlloc(1);
sz = GetMemoryBlockSize(m);
m = MemoryAlloc(1);
sz = GetMemoryBlockSize(m);
m = MemoryAlloc(1);
sz = GetMemoryBlockSize(m);
m = MemoryAlloc(1);
sz = GetMemoryBlockSize(m);
m = MemoryAlloc(1);
sz = GetMemoryBlockSize(m);
m = MemoryAlloc(1);
sz = GetMemoryBlockSize(m);
I got that min alignment is 32. Is this correct?
And min block size is 28. This is a little bit weird.
This message states that "the smallest allocation has size 32 and is 32 bytes aligned", which doesn't match the help topic.
Is it possible to expose allocator-related info via a public enum?
Knowing min alignment is critical. Info about block sizes is also important.
TIA
Regards,
Novo
|
|
|
|
|
Core 2019
By: mirek on Fri, 07 June 2019 13:56
|
|
|
Re: Core 2019
By: Novo on Fri, 07 June 2019 17:51
|
|
|
Re: Core 2019
By: mirek on Fri, 07 June 2019 18:01
|
|
|
Re: Core 2019
By: Novo on Fri, 07 June 2019 23:00
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 18:30
|
|
|
Re: Core 2019
By: mirek on Sat, 08 June 2019 18:40
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 19:44
|
|
|
Re: Core 2019
By: mirek on Sat, 08 June 2019 20:38
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 21:45
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 21:42
|
|
|
Re: Core 2019
By: mirek on Sat, 08 June 2019 18:31
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 21:54
|
|
|
Re: Core 2019
By: Novo on Sat, 08 June 2019 22:06
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 10:03
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 15:20
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 16:33
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 16:43
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 17:34
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 18:54
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 21:39
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 23:11
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 23:25
|
|
|
Re: Core 2019
By: mirek on Mon, 10 June 2019 17:27
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:01
|
|
|
Re: Core 2019
By: mirek on Mon, 10 June 2019 18:17
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:21
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:45
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:18
|
|
|
Re: Core 2019
By: Novo on Mon, 10 June 2019 18:34
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 17:02
|
|
|
Re: Core 2019
By: Novo on Sun, 09 June 2019 17:15
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 20:56
|
|
|
Re: Core 2019
By: mirek on Sun, 09 June 2019 18:51
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 05:43
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 06:14
|
|
|
Re: Core 2019
By: mirek on Fri, 21 June 2019 09:16
|
|
|
Re: Core 2019
By: mirek on Fri, 21 June 2019 09:23
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 19:58
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 20:28
|
|
|
Re: Core 2019
By: Novo on Sat, 22 June 2019 02:51
|
|
|
Re: Core 2019
By: Novo on Sat, 22 June 2019 02:53
|
|
|
Re: Core 2019
By: mirek on Sat, 22 June 2019 10:23
|
|
|
Re: Core 2019
By: Novo on Sat, 22 June 2019 17:49
|
|
|
Re: Core 2019
By: mirek on Sat, 22 June 2019 22:22
|
|
|
Re: Core 2019
By: Novo on Sat, 22 June 2019 23:44
|
|
|
Re: Core 2019
By: mirek on Sun, 23 June 2019 08:21
|
|
|
Re: Core 2019
By: Novo on Sun, 23 June 2019 21:26
|
|
|
Re: Core 2019
By: mirek on Mon, 24 June 2019 09:22
|
|
|
Re: Core 2019
By: Novo on Mon, 24 June 2019 17:36
|
|
|
Re: Core 2019
By: mirek on Mon, 24 June 2019 18:42
|
|
|
Re: Core 2019
By: Novo on Mon, 24 June 2019 19:36
|
|
|
Re: Core 2019
By: mirek on Mon, 24 June 2019 20:15
|
|
|
Re: Core 2019
By: mirek on Sun, 23 June 2019 09:55
|
|
|
Re: Core 2019
By: mirek on Sun, 23 June 2019 10:19
|
|
|
Re: Core 2019
By: Novo on Mon, 24 June 2019 06:13
|
|
|
Re: Core 2019
By: mirek on Wed, 26 June 2019 08:52
|
|
|
Re: Core 2019
By: mirek on Thu, 27 June 2019 09:44
|
|
|
Re: Core 2019
By: mirek on Fri, 28 June 2019 09:09
|
|
|
Re: Core 2019
By: Tom1 on Fri, 28 June 2019 16:56
|
|
|
Re: Core 2019
By: mirek on Fri, 28 June 2019 17:30
|
|
|
Re: Core 2019
By: mirek on Fri, 28 June 2019 17:31
|
|
|
Re: Core 2019
By: mirek on Fri, 28 June 2019 17:40
|
|
|
Re: Core 2019
By: Tom1 on Fri, 28 June 2019 18:38
|
|
|
Re: Core 2019
By: Novo on Sun, 30 June 2019 19:02
|
|
|
Re: Core 2019
By: mirek on Sun, 30 June 2019 19:11
|
|
|
Re: Core 2019
By: Novo on Sun, 30 June 2019 20:12
|
|
|
Re: Core 2019
By: mirek on Mon, 01 July 2019 00:03
|
|
|
Re: Core 2019
By: Tom1 on Mon, 01 July 2019 09:14
|
|
|
Re: Core 2019
By: Novo on Thu, 11 July 2019 19:55
|
|
|
Re: Core 2019
By: mirek on Thu, 11 July 2019 20:14
|
|
|
Re: Core 2019
By: Novo on Thu, 11 July 2019 20:53
|
|
|
Re: Core 2019
By: mirek on Fri, 12 July 2019 10:09
|
|
|
Re: Core 2019
By: Novo on Fri, 12 July 2019 16:50
|
|
|
Re: Core 2019
By: Novo on Thu, 08 August 2019 21:47
|
|
|
Re: Core 2019
By: mirek on Thu, 08 August 2019 22:47
|
|
|
Re: Core 2019
By: mirek on Thu, 08 August 2019 22:53
|
|
|
Re: Core 2019
By: mirek on Thu, 08 August 2019 22:59
|
|
|
Re: Core 2019
By: Novo on Thu, 08 August 2019 23:30
|
|
|
Re: Core 2019
By: mirek on Fri, 09 August 2019 00:05
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 17:59
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 18:01
|
|
|
Re: Core 2019
By: Novo on Fri, 21 June 2019 18:10
|
Goto Forum:
Current Time: Fri Apr 26 01:20:56 CEST 2024
Total time taken to generate the page: 0.03755 seconds
|