Fix infinite loop in StepToSafePoint after stepping to an address once

This commit is contained in:
Dr. Chat
2015-12-12 13:36:00 -06:00
committed by Ben Vanik
parent 4cbe219476
commit 6f4626118e
2 changed files with 18 additions and 8 deletions

View File

@@ -190,7 +190,9 @@ class XThread : public XObject {
// Steps the thread to a point where it's safe to terminate or read its
// context. Returns the PC after we've finished stepping.
uint32_t StepToSafePoint();
// Pass true for ignore_host if you've stopped the thread yourself
// in host code you want to ignore.
uint32_t StepToSafePoint(bool ignore_host = false);
protected:
bool AllocateStack(uint32_t size);