Why allocateHandle returns offset shifted by MIN_ALIGNMENT_SHIFT? #3550
michaeltheprogrammer1
started this conversation in
General
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am investigating backend API and my mind has just got stuck at memory management for graphics handles. In general, I understand how arena and allocator, and free list, etc. work. I don't understand why
HandleBase::HandleId OpenGLDriver::allocateHandle(size_t size)
returnsoffset
shifted byMIN_ALIGNMENT_SHIFT
, though. And why it cannot just returnaddr
.whole function:
Beta Was this translation helpful? Give feedback.
All reactions