Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public BitSet getAffinity() {

@Override
public void setAffinity(final BitSet affinity) {
LOGGER.trace("unable to set mask to {} as the JNI and JNA libraries not loaded", Utilities.toHexString(affinity));
LOGGER.trace("unable to set mask to {} as the JNI and JNA libraries are not loaded", Utilities.toHexString(affinity));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ public void dumpLocksI7() throws IOException {
new AffinityLock(6, 2, false, true, lockInventory),
new AffinityLock(7, 3, false, true, lockInventory),
};
locks[2].assignedThread = new Thread(new InterrupedThread(), "logger");
locks[2].assignedThread = new Thread(new InterruptedThread(), "logger");
locks[2].assignedThread.start();
locks[3].assignedThread = new Thread(new InterrupedThread(), "engine");
locks[3].assignedThread = new Thread(new InterruptedThread(), "engine");
locks[3].assignedThread.start();
locks[6].assignedThread = new Thread(new InterrupedThread(), "main");
locks[7].assignedThread = new Thread(new InterrupedThread(), "tcp");
locks[6].assignedThread = new Thread(new InterruptedThread(), "main");
locks[7].assignedThread = new Thread(new InterruptedThread(), "tcp");
locks[7].assignedThread.start();
final String actual = dumpLocks(locks);
assertEquals("0: General use CPU\n" +
Expand Down Expand Up @@ -100,9 +100,9 @@ public void dumpLocksI3() throws IOException {
new AffinityLock(2, 0, true, false, lockInventory),
new AffinityLock(3, 1, false, true, lockInventory),
};
locks[1].assignedThread = new Thread(new InterrupedThread(), "engine");
locks[1].assignedThread = new Thread(new InterruptedThread(), "engine");
locks[1].assignedThread.start();
locks[3].assignedThread = new Thread(new InterrupedThread(), "main");
locks[3].assignedThread = new Thread(new InterruptedThread(), "main");

final String actual = dumpLocks(locks);
assertEquals("0: General use CPU\n" +
Expand All @@ -121,7 +121,7 @@ public void dumpLocksCoreDuo() throws IOException {
new AffinityLock(0, 0, true, false, lockInventory),
new AffinityLock(1, 0, false, true, lockInventory),
};
locks[1].assignedThread = new Thread(new InterrupedThread(), "engine");
locks[1].assignedThread = new Thread(new InterruptedThread(), "engine");
locks[1].assignedThread.start();

final String actual = dumpLocks(locks);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* @author peter.lawrey
*/
class InterrupedThread implements Runnable {
class InterruptedThread implements Runnable {
public void run() {
try {
Thread.sleep(Integer.MAX_VALUE);
Expand Down