From e76c951de481f6353563ed2b90ddf09295fbbb81 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 7 Feb 2024 08:57:48 +0200 Subject: [PATCH] Add note about C2 compiler in dev-mode Relates to: #38575 --- docs/src/main/asciidoc/dev-mode-differences.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/main/asciidoc/dev-mode-differences.adoc b/docs/src/main/asciidoc/dev-mode-differences.adoc index 30db2b5d0323c..ed9a6ecd4656b 100644 --- a/docs/src/main/asciidoc/dev-mode-differences.adoc +++ b/docs/src/main/asciidoc/dev-mode-differences.adoc @@ -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 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)