# openjdk/jdk SLOC report

> As of 2026-10-10 (commit 985405820001), openjdk/jdk contains 9,120,979 total lines: 5,762,956 code, 2,551,638 comments, 806,385 blank, across 22,754 files in 35 languages (top: Java 38.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

openjdk/jdk has 5,762,956 source lines of code out of 9,120,979 total lines across 22,754 files, counted from the master ref at commit 985405820001 by the OctoCounts tokei engine on 2026-10-10. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving openjdk/jdk to commit 985405820001, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 63.2% of all lines, comments represent 28.0%, and the repository averages 253 code lines per file. Java accounts for 38.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 14,024 | 4,371,621 | 2,229,336 | 1,722,090 | 420,195 |
| XML | 1,269 | 1,386,090 | 1,375,298 | 9,292 | 1,500 |
| C++ | 1,849 | 1,203,725 | 842,409 | 209,999 | 151,317 |
| GNU Style Assembly | 92 | 417,958 | 405,058 | 1,322 | 11,578 |
| C | 820 | 502,781 | 342,885 | 81,418 | 78,478 |
| C++ Header | 2,517 | 518,398 | 323,473 | 119,731 | 75,194 |
| C Header | 1,024 | 228,238 | 124,969 | 74,038 | 29,231 |
| Objective-C | 133 | 48,349 | 33,009 | 8,228 | 7,112 |
| Autoconf | 9 | 29,244 | 28,565 | 424 | 255 |
| M4 | 37 | 20,706 | 16,484 | 2,828 | 1,394 |
| HTML | 75 | 14,480 | 12,609 | 1,355 | 516 |
| XSL | 9 | 5,367 | 4,473 | 329 | 565 |

Top language (Java 38.7%). Generated at 2026-10-10T00:55:16.973255338+00:00. Canonical report: https://octocounts.com/github/openjdk/jdk

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/openjdk/jdk/commit/98540582000172a16087d15b650b80caa505c5b7?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does openjdk/jdk have?

openjdk/jdk has 9,120,979 total lines, including 5,762,956 code lines, 2,551,638 comment lines, and 806,385 blank lines.

### How was the openjdk/jdk line count measured?

OctoCounts resolved the public GitHub repository to commit 985405820001, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for openjdk/jdk?

This OctoCounts report was generated from master at commit 985405820001 on 2026-10-10T00:55:16.973255338+00:00.

## Similar repository reports

- [microsoft/openjdk-jdk25u](https://octocounts.com/github/microsoft/openjdk-jdk25u) — Java, 5,613,671 code lines
- [exteraless/exteraless](https://octocounts.com/github/exteraless/exteraless) — Java, 3,869,371 code lines
- [metasfresh/metasfresh](https://octocounts.com/github/metasfresh/metasfresh) — Java, 3,448,584 code lines
- [elastic/elasticsearch](https://octocounts.com/github/elastic/elasticsearch) — Java, 3,211,353 code lines
- [Ettacent/NimarkoGram](https://octocounts.com/github/Ettacent/NimarkoGram) — Java, 2,693,915 code lines
- [arsLan4k1390/Cherrygram](https://octocounts.com/github/arsLan4k1390/Cherrygram) — Java, 2,560,682 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [Kubernetes vs Docker Compose](https://octocounts.com/compare/kubernetes-vs-docker-compose)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
