We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a48f0 commit 35367a0Copy full SHA for 35367a0
1 file changed
crates/oxc_allocator/src/bump.rs
@@ -2606,11 +2606,19 @@ mod tests {
2606
use super::*;
2607
2608
// Uses private type `ChunkFooter`.
2609
+ #[cfg(target_pointer_width = "64")]
2610
#[test]
- fn chunk_footer_is_five_words() {
2611
+ fn chunk_footer_is_six_words_on_64_bit() {
2612
assert_eq!(mem::size_of::<ChunkFooter>(), mem::size_of::<usize>() * 6);
2613
}
2614
2615
+ // Uses private type `ChunkFooter`.
2616
+ #[cfg(target_pointer_width = "32")]
2617
+ #[test]
2618
+ fn chunk_footer_is_eight_words_on_32_bit() {
2619
+ assert_eq!(mem::size_of::<ChunkFooter>(), mem::size_of::<usize>() * 8);
2620
+ }
2621
+
2622
// Uses private `DEFAULT_CHUNK_SIZE_WITHOUT_FOOTER` and `FOOTER_SIZE`.
2623
2624
fn allocated_bytes() {
0 commit comments