The Wayback Machine - https://web.archive.org/web/20230505001509/https://github.com/dotnet/runtime/pull/85792
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[browser] prevent <DebuggerSupport> from disabling interp optimizations #85792

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented May 4, 2023

And timeouts while running those unit tests.

@pavelsavara and @BrzVlad found that some tests like
System.Collections.Immutable.Tests run slower because the runtime has
debugging enabled which causes the interpreter to disable optimizations.

Reason:

  • Some tests depend on debugger attributes, and thus set
    $(DebuggerSupport)=true to preserve them while linking.

  • Which sets $(WasmDebugLevel)=-1. But setting $(WasmDebugLevel)<0
    enables debugging support in the runtime.

  • So, set this to <0 only when building with Configuration=Debug .

The motivation for DebuggerSupport is to keep DebuggerDisplayAttribute not trimmed.
See https://github.com/dotnet/runtime/pull/48226/files#r617735629

@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-Build-mono labels May 4, 2023
@pavelsavara pavelsavara added this to the 8.0.0 milestone May 4, 2023
@pavelsavara pavelsavara self-assigned this May 4, 2023
@msftbot
Copy link
Contributor

msftbot bot commented May 4, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

And timeouts while running those unit tests.

Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, area-Build-mono

Milestone: 8.0.0
@pavelsavara and @BrzVlad found that some tests like
System.Collections.Immutable.Tests run slower because the runtime has
debugging enabled which causes the interpreter to disable optimizations.

Reason:

- Some tests depend on debugger attributes, and thus set
  `$(DebuggerSupport)=true` to preserve them while linking.
- Which sets `$(WasmDebugLevel)=-1`. But setting `$(WasmDebugLevel)<0`
  enables debugging support in the runtime.

- So, set this to `<0` only when building with `Configuration=Debug` .
@radical
Copy link
Member

radical commented May 4, 2023

/azp runtime-wasm-libtests

@azure-pipelines
Copy link

Command 'runtime-wasm-libtests' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or specific pipelines for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify specific pipelines to run.
    • Example: "run" or "run pipeline_name, pipeline_name, pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.
@radical
Copy link
Member

radical commented May 4, 2023

/azp run runtime-wasm-libtests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-Build-mono
2 participants