Skip to content

[docs] note that the deadlock check also covers C, C++, and Objective-C - #2329

Merged
dulmarod merged 1 commit into
meta:mainfrom
VladimirMakaev:pr/deadlock-docs-1125
Nov 25, 2026
Merged

dulmarod merged 1 commit into
meta:mainfrom
VladimirMakaev:pr/deadlock-docs-1125

Conversation

@VladimirMakaev

Copy link
Copy Markdown
Contributor

The DEADLOCK page introduces the diagnostic as a Java error, although the starvation checker
also detects lock-order cycles in C, C++, and Objective-C code using pthread or C++ mutexes.
The existing C and C++ regression suites already demonstrate this coverage.

Update the issue documentation and its generated reference with the supported languages and
mutex scope:

This error is reported in Java, and in C, C++, and Objective-C code that uses
pthread mutexes or the C++ standard library mutexes.

Test plan

  • Linux native Infer build: passed.
  • Full Linux direct_tests suite: 73 direct suites and the annotations target passed, zero errors.
  • Entire updated issue text matches the generated reference; language and mutex coverage matches
    the checker registration, mutex models, and existing C/C++ deadlock expectations.

The DEADLOCK page introduces the diagnostic as a Java error, although the starvation checker
also detects lock-order cycles in C, C++, and Objective-C code using pthread or C++ mutexes.
The existing C and C++ regression suites already demonstrate this coverage.

Update the issue documentation and its generated reference with the supported languages and
mutex scope:

```text
This error is reported in Java, and in C, C++, and Objective-C code that uses
pthread mutexes or the C++ standard library mutexes.
```

## Test plan

Build with make and run the full Linux direct_tests suite. Check that the issue documentation
appears verbatim in the generated reference and matches the existing checker registration,
mutex models, and C/C++ deadlock expectations.
@meta-cla meta-cla Bot added the CLA Signed label Nov 25, 2026
@dulmarod
dulmarod merged commit 5aa77f5 into meta:main Nov 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants