YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Detecting VM lock-up
Hop
#1 Posted : Tuesday, February 6, 2018 10:44:36 PM(UTC)
Rank: Member

Groups: Registered
Joined: 1/19/2015(UTC)
Posts: 11
Location: UK

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
What is the best mechanism for detecting when a VM has locked up, that is to say, stuck in an infinite loop?

My application wakes any suspended VMs each frame and then releases the thread if it becomes idle (finished) or keeps it alive for the next frame if it becomes suspended.

I'd like to detect if one of the threads becomes stuck in an infinite loop (say while(true) { /*no suspend in here*/} and warn and/or destroy it. Is the sq_setdebughook the best way to do this, or is there a better way?
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.101 seconds.