# openjdk/jdk SLOC report

> As of 2026-11-21 (commit 78bf06f425a9), openjdk/jdk contains 9,096,681 total lines: 5,725,967 code, 2,561,839 comments, 808,875 blank, across 22,581 files in 35 languages (top language: Java 39.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

openjdk/jdk has 5,725,967 source lines of code out of 9,096,681 total lines across 22,581 files, counted with tokei from the master ref at commit 78bf06f425a9 on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving openjdk/jdk to commit 78bf06f425a9, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

openjdk/jdk: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 62.9% of all lines, comments represent 28.2%, and the repository averages 254 code lines per file. Java accounts for 39.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 14,029 | 4,380,835 | 2,231,971 | 1,728,057 | 420,807 |
| XML | 1,076 | 1,331,609 | 1,321,757 | 8,322 | 1,530 |
| C++ | 1,854 | 1,213,816 | 848,957 | 212,359 | 152,500 |
| GNU Style Assembly | 92 | 417,973 | 405,072 | 1,322 | 11,579 |
| C | 816 | 503,072 | 343,256 | 81,288 | 78,528 |
| C++ Header | 2,525 | 529,782 | 332,600 | 120,746 | 76,436 |
| C Header | 1,027 | 225,796 | 122,717 | 74,535 | 28,544 |
| Objective-C | 133 | 48,333 | 32,990 | 8,226 | 7,117 |
| Autoconf | 9 | 29,244 | 28,565 | 424 | 255 |
| M4 | 37 | 20,792 | 16,561 | 2,830 | 1,401 |
| HTML | 75 | 14,480 | 12,609 | 1,355 | 516 |
| XSL | 9 | 5,358 | 4,463 | 330 | 565 |

Top language: Java 39.0%. Generated on November 21, 2026. Canonical report: https://octocounts.com/github/openjdk/jdk

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/openjdk/jdk/commit/78bf06f425a99c26dbbc39b81aecf0912a50190b?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&reportId=f321adc10e7de8ff42e934b3d372cc8815fdb557d14e122889b46523348ebec6).

## Report FAQ

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

openjdk/jdk has 5,725,967 lines of code, plus 2,561,839 comment lines and 808,875 blank lines, for 9,096,681 total lines at commit 78bf06f425a9 on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 78bf06f425a9, 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 78bf06f425a9 on November 21, 2026.

## Similar repository reports

- [microsoft/openjdk-jdk25u](https://octocounts.com/github/microsoft/openjdk-jdk25u) — Java, 5,626,404 code lines
- [crdroidandroid/android_frameworks_base](https://octocounts.com/github/crdroidandroid/android_frameworks_base) — Java, 5,463,684 code lines
- [Evolution-X/frameworks_base](https://octocounts.com/github/Evolution-X/frameworks_base) — Java, 5,462,911 code lines
- [apache/netbeans](https://octocounts.com/github/apache/netbeans) — Java, 4,913,555 code lines
- [aosp-mirror/platform_frameworks_base](https://octocounts.com/github/aosp-mirror/platform_frameworks_base) — Java, 4,860,279 code lines
- [risin42/NagramX](https://octocounts.com/github/risin42/NagramX) — Java, 4,212,256 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
