Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: OpenHFT/Java-Thread-Affinity
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ea
Choose a base ref
...
head repository: OpenHFT/Java-Thread-Affinity
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: aegis/first
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 5 files changed
  • 2 contributors

Commits on May 13, 2026

  1. Add Affinity-local Bounds helper and clarify cycle/time semantics

    Add a Bounds class to validate sizes/offsets without taking a
    Chronicle-Core dependency (this module is below Core in the
    dependency graph). The class name and method signatures mirror
    Chronicle-Core's Bounds so call sites read consistently across the
    project.
    
    Use the helper at the four sites where a SIZE-meta-typed receiver
    is computed from arithmetic that downstream tooling cannot easily
    prove non-negative:
      - LinuxHelper.SIZE_OF_CPU_SET_T          (constant expression)
      - PosixJNAAffinity.cpuSetSizeInLongs    ((procs + 63) / 64)
      - PosixJNAAffinity.cpuSetSizeInBytes    (longs * 8)
    
    Rename time-typed locals so the time meta-type is explicit:
      - MicroJitterSampler.sample: `end` -> `endNs` (future timestamp)
      - JNIClock.estimateFrequency: `end`/`start0`/`end0` -> `endNs`/
        `startCycles0`/`endCycles0`. `startCycles0` is wrapped with
        `Bounds.requireOffset` because rdtsc() is always non-negative
        within a process lifetime.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    peter-lawrey and claude committed May 13, 2026
    Configuration menu
    Copy the full SHA
    6d2523d View commit details
    Browse the repository at this point in the history
Loading