Optimize Next implementation

Once the program detects that we have stepped into another function,
we simply calculate the return address and then set a breakpoint and
continue to that location, avoiding numerous syscalls.
This commit is contained in:
Derek Parker
2014-10-11 17:29:10 -05:00
parent c60f3aafde
commit dc8c9cc2a4
4 changed files with 53 additions and 6 deletions

View File

@ -37,7 +37,7 @@ func testnext() {
func main() {
runtime.LockOSThread()
for {
sleepytime()
helloworld()
testnext()
}
}