Unverified Commit ca0a403e authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

Gate pointer-page layout assertions on 64-bit targets

Co-authored-by: 's avatarLuke Sandberg <210140+lukesandberg@users.noreply.github.com>
parent daa0e7e3
......@@ -1208,10 +1208,9 @@ mod tests {
use turbo_tasks::{CellId, TaskId};
use super::*;
use crate::{
backend::task_page_map::{BITMAP_WORDS, PAGE_SIZE, TaskMap},
data::{AggregationNumber, CellRef, Dirtyness, OutputValue},
};
#[cfg(target_pointer_width = "64")]
use crate::backend::task_page_map::{BITMAP_WORDS, PAGE_SIZE, TaskMap};
use crate::data::{AggregationNumber, CellRef, Dirtyness, OutputValue};
#[test]
fn test_accessors() {
......
......@@ -478,12 +478,12 @@ impl<T: TaskSlotValue + Send + 'static> TaskMap<T> {
self.persistent.entries.count() + self.transient.entries.count()
}
#[cfg(test)]
#[cfg(all(test, target_pointer_width = "64"))]
pub(crate) fn directory_entry_size() -> usize {
std::mem::size_of::<PageDirectoryEntry<T>>()
}
#[cfg(test)]
#[cfg(all(test, target_pointer_width = "64"))]
pub(crate) fn pointer_page_size() -> usize {
std::mem::size_of::<TaskPointerPage<T>>()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment