Skip to content

tracing: fix MSVC hang on TRACE_EVENT inside a lambda - #7880

Closed
ghost wants to merge 1 commit into
mainfrom
unknown repository
Closed

ghost wants to merge 1 commit into
mainfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Oct 9, 2026

Copy link
Copy Markdown

MSVC without /permissive- hangs forever compiling a TRACE_EVENT inside
a lambda. The culprit is the lambdas in the scoped event's END, so this
emits the END without any lambda. No API or codegen changes.

Fixes #7591.

@ghost
ghost self-requested a review as a code owner October 9, 2026 23:00
@google-cla

google-cla Bot commented Oct 9, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ghost
ghost force-pushed the fix-msvc-lambda-hang branch 2 times, most recently from 6bf4ca5 to cbe347c Compare October 9, 2026 23:04
MSVC without /permissive- hangs forever compiling a TRACE_EVENT inside
a lambda. The culprit is the lambdas in the scoped event's END, so this
emits the END without any lambda. No API or codegen changes.

Fixes #7591.
@ghost
ghost force-pushed the fix-msvc-lambda-hang branch from cbe347c to 89156f7 Compare October 9, 2026 23:09
@ghost ghost closed this by deleting the head repository Oct 9, 2026
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If try tracing inside lambdas, compiler runs for infinite time

1 participant