Files
blog_os/blog/content/second-edition/posts/06-double-faults
Philipp Oppermann 9980989f7f Update Double Faults post to prevent tail recursion in test
Adds a dummy volatile read in the stack_overflow test to ensure that it is not tail recursive. Thus, the compiler can't apply the tail call elimination optimization, which turns the recursive function into a loop and thus prevents the stack overflow from happening.

Code update in https://github.com/phil-opp/blog_os/pull/818.
2020-06-08 12:29:02 +02:00
..