Skip to content

Commit

Permalink
Invalidate all compiled bodies if FSD is enabled post-restore
Browse files Browse the repository at this point in the history
As a simple solution for dealing with a user wanting debug post-restore,
invalidate all compiled bodies to deal with the fact that proactive
compilation that occurred pre-checkpoint did not have FSD enabled.

Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
  • Loading branch information
dsouzai authored and AswathySK committed Jun 4, 2024
1 parent b64e82f commit d56dc87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/compiler/control/OptionsPostRestore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ J9::OptionsPostRestore::postProcessInternalCompilerOptions()
TR::Options::FSDInitStatus fsdStatus = TR::Options::resetFSD(vm, _vmThread, doAOT);
disableAOT = !doAOT;

if (fsdStatus == TR::Options::FSDInitStatus::FSDInit_Error)
if (fsdStatus != TR::Options::FSDInitStatus::FSDInit_NotInitialized)
{
invalidateAll = true;
disableAOT = true;
Expand Down

0 comments on commit d56dc87

Please sign in to comment.