-
Notifications
You must be signed in to change notification settings - Fork 885
Exception interface for supervisor #199
base: master
Are you sure you want to change the base?
Changes from 6 commits
bf5fb55
ccdf408
06ab1fe
9dce9fc
608b113
5e4113b
792f407
c2f9b77
a23145c
f97569d
a9cc5f9
0304961
99614cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -364,8 +364,12 @@ static inline void memslot_delete(hax_memslot *dest) | |
|
||
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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Many thanks for @leecher1337 shooting the root cause! For performance reasons, it is recommended to get rid of memslot_init() invocation to avoid assigning dest->entry 3 times within this function. I drafted the commit message for your reference. The following code should be equivalent for your reference. Thanks again. Fix a bug of memslot_move() Invoking memslot_init() in memslot_move() will result in losing the static inline void memslot_move(hax_memslot *dest, hax_memslot *src) |
||
} | ||
|
||
static inline void memslot_union(hax_memslot *dest, hax_memslot *src) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use spaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, hopefully this was the last tab vs. space issue, I did a grep on \t now and didn't find any more areas