Skip to content

Commit 4bde281

Browse files
committed
up
1 parent 565f76f commit 4bde281

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Improve the performance of the Tachyon profiler by avoiding unnecessary remote
2+
reads of the base frame sentinel. Patch by Maurycy Pawłowski-Wieroński.

‎Modules/_remote_debugging/frames.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ process_frame_chain(
326326
}
327327
assert(frame_count <= MAX_FRAME_CHAIN_DEPTH);
328328

329+
if (frame_addr == ctx->base_frame_addr
330+
&& !(unwinder->gc && frame_addr == ctx->gc_frame)) {
331+
break;
332+
}
333+
329334
if (ctx->chunks && ctx->chunks->count > 0) {
330335
parse_result = parse_frame_from_chunks(
331336
unwinder, &frame, frame_addr, &next_frame_addr, &stackpointer, ctx->chunks);

0 commit comments

Comments
 (0)