Skip to content

Commit

Permalink
Merge pull request #7555 from DataDog/mattalp/scp-479-fix
Browse files Browse the repository at this point in the history
Enable profiling startForceFirst silently for native image builds
  • Loading branch information
MattAlp authored Sep 3, 2024
2 parents 6e276be + a293df1 commit 51d3cee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ public static synchronized void run(
final ConfigProvider configProvider = ConfigProvider.getInstance();

boolean startForceFirst =
configProvider.getBoolean(
PROFILING_START_FORCE_FIRST, PROFILING_START_FORCE_FIRST_DEFAULT);
Platform.isNativeImage()
|| configProvider.getBoolean(
PROFILING_START_FORCE_FIRST, PROFILING_START_FORCE_FIRST_DEFAULT);

if (!isStartForceFirstSafe()) {
log.debug(
Expand Down

0 comments on commit 51d3cee

Please sign in to comment.