Skip to content

Commit

Permalink
Tune FIX tests for affinity and buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-lawrey committed Mar 30, 2016
1 parent f3ddbcd commit 57a3d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions affinity/src/main/java/net/openhft/affinity/AffinityLock.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ private static BitSet getReservedAffinity0() {
String reservedAffinity = System.getProperty(AFFINITY_RESERVED);
if (BASE_AFFINITY != null && (reservedAffinity == null || reservedAffinity.trim().isEmpty())) {
BitSet reserverable = new BitSet(PROCESSORS);
reserverable.set(0, PROCESSORS, true);
reserverable.and(BASE_AFFINITY);
reserverable.set(1, PROCESSORS, true);
reserverable.andNot(BASE_AFFINITY);
if (reserverable.isEmpty() && PROCESSORS > 1) {
LoggerFactory.getLogger(AffinityLock.class).info("No isolated CPUs found, so assuming CPUs 1 to {} available.", (PROCESSORS - 1));
reserverable = new BitSet(PROCESSORS);
Expand Down

0 comments on commit 57a3d7a

Please sign in to comment.