Skip to content

Commit

Permalink
Fix bug with seq_alloc_sequential not respecting a run-time disabled …
Browse files Browse the repository at this point in the history
…arena
  • Loading branch information
fwsGonzo committed Aug 9, 2024
1 parent 7383575 commit ecd15a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion engine/src/script/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ gaddr_t Script::guest_alloc(gaddr_t bytes)

gaddr_t Script::guest_alloc_sequential(gaddr_t bytes)
{
return machine().arena().seq_alloc_aligned(bytes, 8);
return machine().arena().seq_alloc_aligned(bytes, 8, machine().memory.initial_rodata_end() != 0x0);
}

bool Script::guest_free(gaddr_t addr)
Expand Down
1 change: 1 addition & 0 deletions engine/src/script/script.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ template <typename T> struct GuestObjects
other.m_address = 0x0;
other.m_count = 0u;
}
GuestObjects& operator=(GuestObjects&& other) = delete;

~GuestObjects()
{
Expand Down

0 comments on commit ecd15a3

Please sign in to comment.