Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 889
Registered: December 2006
Experienced 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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ide: Assist / Display/apply patch
Next Topic: ide: pkg_config support
Goto Forum:
  


Current Time: Wed Sep 18 11:06:48 CEST 2019

Total time taken to generate the page: 0.01539 seconds