Explorar o código

mem: Don't print `Buddy_Allocator.tail`

This is always a pointer past the end of the buffer given to
`buddy_allocator_init`, which could be an invalid address. Printing may
result in a segmentation violation.
Feoramund hai 2 meses
pai
achega
bfa0e1110a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/mem/allocators.odin

+ 1 - 1
core/mem/allocators.odin

@@ -2196,7 +2196,7 @@ The buddy allocator data.
 */
 Buddy_Allocator :: struct {
 	head:      ^Buddy_Block,
-	tail:      ^Buddy_Block,
+	tail:      ^Buddy_Block `fmt:"-"`,
 	alignment: uint,
 }