rust/zerocopy/benches/new_box_zeroed_with_elems_dynamic_size.x86-64

Source file repositories/reference/linux-study-clean/rust/zerocopy/benches/new_box_zeroed_with_elems_dynamic_size.x86-64

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/new_box_zeroed_with_elems_dynamic_size.x86-64
Extension
.x86-64
Size
431 bytes
Lines
23
Domain
Rust Kernel Layer
Bucket
Rust API Membrane
Inferred role
Rust Kernel Layer: Rust API Membrane
Status
atlas-only

Why This File Exists

Rust-side wrappers and abstractions around kernel C APIs, ownership contracts, allocation, synchronization, and module integration.

Dependency Surface

Detected Declarations

Annotated Snippet

bench_new_box_zeroed_with_elems_dynamic_size:
	push r14
	push rbx
	push rax
	mov rbx, rdi
	movabs rax, 4611686018427387901
	cmp rdi, rax
	ja .LBB5_1
	lea r14, [2*rbx + 4]
	call qword ptr [rip + __rustc::__rust_no_alloc_shim_is_unstable_v2@GOTPCREL]
	mov esi, 2
	mov rdi, r14
	call qword ptr [rip + __rustc::__rust_alloc_zeroed@GOTPCREL]
	jmp .LBB5_3
.LBB5_1:
	xor eax, eax
.LBB5_3:
	mov rdx, rbx
	add rsp, 8
	pop rbx
	pop r14
	ret

Annotation

Implementation Notes