Skip to content

Commit 36878b8

Browse files
committed
Disable the nagging about sun.misc.Unsafe in dev-mode as well
1 parent 6c393c7 commit 36878b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/deployment/src/main/java/io/quarkus/deployment/dev/DevModeMain.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import io.quarkus.dev.spi.DevModeType;
2828
import io.quarkus.maven.dependency.ArtifactKey;
2929
import io.quarkus.paths.PathList;
30+
import io.quarkus.runtime.JVMChecksRecorder;
3031
import io.smallrye.common.os.OS;
3132

3233
/**
@@ -71,6 +72,7 @@ public static void main(String... args) throws Exception {
7172
public void start() throws Exception {
7273
//propagate system props
7374
propagateSystemProperties();
75+
prepareJVMSettings();
7476

7577
try {
7678
QuarkusBootstrap.Builder bootstrapBuilder = QuarkusBootstrap.builder()
@@ -112,6 +114,11 @@ public void start() throws Exception {
112114
}
113115
}
114116

117+
private void prepareJVMSettings() {
118+
//Disable the sun.misc.Unsafe warnings in dev-mode:
119+
JVMChecksRecorder.disableUnsafeRelatedWarnings();
120+
}
121+
115122
private PathList getApplicationBuildDirs() {
116123
final String classesDir = context.getApplicationRoot().getMain().getClassesPath();
117124
final String resourcesOutputDir = context.getApplicationRoot().getMain().getResourcesOutputPath();

0 commit comments

Comments
 (0)