Skip to content

Windows semaphores cap at 134 million permits #125

Closed

Description

@dimensionscape

The Windows semaphore is created with a maximum count of 0x7FFFFFF (one F short of INT_MAX), so new Semaphore(200000000), or the 134,217,728th release, throws on Windows only. The native object also leaks when the constructor throws.

Activity

  1. added this to the 6.0.0 milestone on Oct 15, 2026
  2. added a commit that references this issue on Oct 15, 2026
    edbf431
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions