Skip to content

2.0.4: G-7.6, G-7.8, G-11.5 name the JDK behaviours that defeat their usual form - #5

Merged
marregui merged 1 commit into
mainfrom
jdk-limits-2.0.4
Nov 7, 2026
Merged

marregui merged 1 commit into
mainfrom
jdk-limits-2.0.4

Conversation

@marregui

@marregui marregui commented Nov 7, 2026

Copy link
Copy Markdown
Owner

What

One paragraph each in G-7.6, G-7.8 and G-11.5 on a JDK behaviour that defeats the rule's usual form:

  • G-7.6: a timed CompletableFuture.get on a ForkJoinPool worker can run a task it queued itself inline and miss its timeout.
  • G-7.8: the untimed tryAcquire() of a fair Semaphore barges; a retry after a failed timed wait uses tryAcquire(0, unit).
  • G-11.5: barrier parties on the common pool block until the barrier times out on a runner with 2 CPUs or fewer; parties get threads of their own.

No title, scope, class or Finding line changed; RULES.md regenerates unchanged. Recorded in CHANGELOG.md under 2.0.4.

Checks

  • python3 tools/rules.py --check: 140 rules, 0 failure(s)
  • python3 -I tools/test_rules.py: OK
  • The G-7.6 and G-11.5 behaviours were probed on Temurin 25 (timed get at parallelism 1 waited 2006 ms past a 300 ms timeout; CyclicBarrier(2) timed out at 1 and 2 CPUs, passed at 3).

@marregui marregui self-assigned this Nov 7, 2026
@marregui
marregui merged commit ae93061 into main Nov 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant