Skip to content

Commit

Permalink
Always use a normal segment for first SegmentArena segment
Browse files Browse the repository at this point in the history
  • Loading branch information
notlesh committed Sep 25, 2024
1 parent 63b4a55 commit ebba0c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl DictManagerExecScope {

/// Allocates a new segment for a new dictionary and return the start of the segment.
pub fn new_default_dict(&mut self, vm: &mut VirtualMachine) -> Result<Relocatable, HintError> {
let dict_segment = if self.use_temporary_segments {
let dict_segment = if self.use_temporary_segments && self.trackers.len() > 0 {
vm.add_temporary_segment()
} else {
vm.add_memory_segment()
Expand Down

0 comments on commit ebba0c7

Please sign in to comment.