Re: [PATCH] rust: alloc: Add realloc and alloc_zeroed to the GlobalAlloc impl

From: Martin Rodriguez Reboredo
Date: Thu Jun 22 2023 - 21:07:42 EST


On 6/22/23 16:24, Björn Roy Baron via B4 Relay wrote:
From: Björn Roy Baron <bjorn3_gh@xxxxxxxxxxxxxx>

While there are default impls for these methods, using the respective C
api's is faster. Currently neither the existing nor these new
GlobalAlloc method implementations are actually called. Instead the
__rust_* function defined below the GlobalAlloc impl are used. With
rustc 1.71 these functions will be gone and all allocation calls will go
through the GlobalAlloc implementation.

Link: https://github.com/Rust-for-Linux/linux/issues/68
Signed-off-by: Björn Roy Baron <bjorn3_gh@xxxxxxxxxxxxxx>
---
[...]

Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@xxxxxxxxx>