mirror of
https://github.com/aphrody-labs/oxc.git
synced 2026-10-15 06:39:17 +00:00
fix(allocator): gate Allocator::data_end_ptr behind fixed_size feature (#26248)
## Summary - compile Allocator::data_end_ptr only in supported fixed-size allocator builds - remove the dead-code warning from coverage builds while preserving fixed-size pool usage
This commit is contained in:
1 parent
853ffabf34
commit
00dea7ab73
1 file changed
+1
@@ -103,6 +103,7 @@ impl Allocator {
|
||||
/// i.e to the start of the `ChunkFooter`.
|
||||
///
|
||||
/// If the `Allocator` is empty (has no chunks), this returns a dangling pointer.
|
||||
#[cfg(all(feature = "fixed_size", target_pointer_width = "64", target_endian = "little"))]
|
||||
pub(crate) fn data_end_ptr(&self) -> NonNull<u8> {
|
||||
self.arena().data_end_ptr()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user