We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd46a88 commit 5adcc50Copy full SHA for 5adcc50
1 file changed
src/test/java/vanilla/java/affinity/AffinityLockTest.java
@@ -61,6 +61,12 @@ public void dumpLocks() {
61
62
@Test
63
public void assignReleaseThread() {
64
+ if (AffinityLock.RESERVED_AFFINITY == 0) {
65
+ System.out.println("Cannot run affinity test as no threads gave been reserved.");
66
+ System.out.println("Use isocpus= in grub.conf or use -D" + AffinityLock.AFFINITY_RESERVED + "={hex mask}");
67
+ return;
68
+ }
69
+
70
assertEquals(AffinityLock.BASE_AFFINITY, AffinitySupport.getAffinity());
71
AffinityLock al = AffinityLock.acquireLock();
72
assertEquals(1, Long.bitCount(AffinitySupport.getAffinity()));
0 commit comments