Skip to content

Commit b7942b9

Browse files
committed
remove pool tsan test
tsan does not support the 32-bit x86 targets
1 parent fb3f34c commit b7942b9

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ jobs:
250250
- x86_64-unknown-linux-gnu
251251
toolchain:
252252
- nightly
253-
features:
254-
- x86-sync-pool
255253
buildtype:
256254
- ""
257255
- "--release"

tests/tsan.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -241,35 +241,3 @@ fn iterator_properly_wraps() {
241241
}
242242
assert_eq!(expected, actual)
243243
}
244-
245-
#[cfg(all(target_arch = "x86_64", feature = "x86-sync-pool"))]
246-
#[test]
247-
fn pool() {
248-
use heapless::pool::singleton::Pool as _;
249-
250-
static mut M: [u8; (N + 1) * 8] = [0; (N + 1) * 8];
251-
const N: usize = 16 * 1024;
252-
heapless::pool!(A: [u8; 8]);
253-
254-
A::grow(unsafe { &mut M });
255-
256-
thread::scope(move |scope| {
257-
scope.spawn(move || {
258-
for _ in 0..N / 4 {
259-
let a = A::alloc().unwrap();
260-
let b = A::alloc().unwrap();
261-
drop(a);
262-
let b = b.init([1; 8]);
263-
drop(b);
264-
}
265-
});
266-
267-
scope.spawn(move || {
268-
for _ in 0..N / 2 {
269-
let a = A::alloc().unwrap();
270-
let a = a.init([2; 8]);
271-
drop(a);
272-
}
273-
});
274-
});
275-
}

0 commit comments

Comments
 (0)