We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d92239c commit 9875ff7Copy full SHA for 9875ff7
mps/code/amcss.c
@@ -95,7 +95,12 @@ static void report(void)
95
96
static mps_addr_t make(size_t rootsCount)
97
{
98
- static volatile unsigned long calls = 0; /* for use from debugger */
+ /* The calls variable is useful when debugging to stop the debugging
99
+ after a certain number of allocations using a debugger
100
+ "watchpoint". Allocations are a good "clock tick" for this test.
101
+ The test itself doesn't use the variable, so we declare it
102
+ volatile, which also forces updates into memory. */
103
+ static volatile unsigned long calls = 0;
104
size_t length = rnd() % (scale * avLEN);
105
size_t size = (length+2) * sizeof(mps_word_t);
106
mps_addr_t p;
0 commit comments