Skip to content

Commit

Permalink
Add note about C2 compiler in dev-mode
Browse files Browse the repository at this point in the history
Relates to: #38575
  • Loading branch information
geoand authored and gsmet committed Feb 7, 2024
1 parent 2fc23dc commit e76c951
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/main/asciidoc/dev-mode-differences.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ Thus, when running the production application, build time operations are not per
Furthermore, the purpose built ClassLoader that comes with the xref:maven-tooling.adoc#fast-jar[fast-jar] package type ensures that class lookup is done as fast as possible while also keeping

Check warning on line 105 in docs/src/main/asciidoc/dev-mode-differences.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.TermsWarnings] Consider using 'includes' rather than 'comes with' unless updating existing content that uses the term. Raw Output: {"message": "[Quarkus.TermsWarnings] Consider using 'includes' rather than 'comes with' unless updating existing content that uses the term.", "location": {"path": "docs/src/main/asciidoc/dev-mode-differences.adoc", "range": {"start": {"line": 105, "column": 49}}}, "severity": "WARNING"}

Check warning on line 105 in docs/src/main/asciidoc/dev-mode-differences.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.TermsSuggestions] Depending on the context, consider using 'because' or 'while' rather than 'as'. Raw Output: {"message": "[Quarkus.TermsSuggestions] Depending on the context, consider using 'because' or 'while' rather than 'as'.", "location": {"path": "docs/src/main/asciidoc/dev-mode-differences.adoc", "range": {"start": {"line": 105, "column": 154}}}, "severity": "INFO"}
the minimum amount of jars in memory.

[NOTE]
====
Since optimal performance is never an objective of dev mode, in the interest of improving startup time, the JVM's C2 compiler is disabled in dev mode.
====

== Security implications

Perhaps the most important reason why dev mode applications should not be run in production is that the dev mode allows reading information that could be confidential (via the Dev-UI)

Check warning on line 115 in docs/src/main/asciidoc/dev-mode-differences.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.SentenceLength] Try to keep sentences to an average of 32 words or fewer. Raw Output: {"message": "[Quarkus.SentenceLength] Try to keep sentences to an average of 32 words or fewer.", "location": {"path": "docs/src/main/asciidoc/dev-mode-differences.adoc", "range": {"start": {"line": 115, "column": 1}}}, "severity": "INFO"}

Check warning on line 115 in docs/src/main/asciidoc/dev-mode-differences.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.TermsWarnings] Consider using 'through', 'by', 'from', 'on', or 'by using' rather than 'via' unless updating existing content that uses the term. Raw Output: {"message": "[Quarkus.TermsWarnings] Consider using 'through', 'by', 'from', 'on', or 'by using' rather than 'via' unless updating existing content that uses the term.", "location": {"path": "docs/src/main/asciidoc/dev-mode-differences.adoc", "range": {"start": {"line": 115, "column": 169}}}, "severity": "WARNING"}
Expand Down

0 comments on commit e76c951

Please sign in to comment.