MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / recursive_call

Function recursive_call

thread/test/test.cpp:1351–1357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1349
1350static char* topbuf = nullptr;
1351void recursive_call(int level = 1024) {
1352 char buf[4096];
1353 topbuf = &buf[0];
1354 strncpy(buf, "Hello, stack", 13);
1355 if (level)
1356 recursive_call(level - 1);
1357}
1358
1359void* testwork(void*) {
1360 recursive_call();

Callers 1

testworkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected