Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
handle unloaded programs during extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed May 9, 2023
1 parent d01041f commit 3c7d2ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions program-runtime/src/loaded_programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,12 @@ impl LoadedPrograms {
return None;
}

if matches!(entry.program, LoadedProgramType::Unloaded) {
// The program was unloaded. Consider it as missing, so it can be reloaded.
missing.push(key);
return None;
}

if current_slot >= entry.effective_slot {
return Some((key, entry.clone()));
} else if entry.is_implicit_delay_visibility_tombstone(current_slot) {
Expand Down

0 comments on commit 3c7d2ed

Please sign in to comment.