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

Exception interface for supervisor #199

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions core/memslot.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,12 @@ static inline void memslot_delete(hax_memslot *dest)
hax_vfree(dest, sizeof(hax_memslot));
}

static inline void memslot_move(hax_memslot *dest, hax_memslot *src)
{
hax_list_node entry;

ramblock_deref(dest->block);
entry = dest->entry;
memslot_init(dest, src);
dest->entry = entry;
static inline void memslot_move(hax_memslot *dest, hax_memslot *src)
{
ramblock_deref(dest->block);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the current coding style, it is recommended to use 4 spaces as indent.

src->entry = dest->entry;
*dest = *src;
ramblock_ref(dest->block);
}

static inline void memslot_union(hax_memslot *dest, hax_memslot *src)
Expand Down