Skip to content

Move method context to do_execute_method#296

Open
martin-hughes wants to merge 1 commit intorust-osdev:mainfrom
martin-hughes:method-context-move
Open

Move method context to do_execute_method#296
martin-hughes wants to merge 1 commit intorust-osdev:mainfrom
martin-hughes:method-context-move

Conversation

@martin-hughes
Copy link
Copy Markdown
Contributor

A potential fix for #292.

As discussed in the issue, I've moved the method context into do_execute_method. It's a pretty straightforward change.

I can't see any particular downside so I've opened this PR - hopefully @IsaacWoods you won't remember a key reason why this is bad 😆

Then there's no way for re-entrancy to corrupt the stack.

Fixes rust-osdev#292.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant