Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix the slashes when setting the ZapBBInstrDir #19858

Merged
merged 2 commits into from
Sep 7, 2018

Conversation

michellemcdaniel
Copy link

@michellemcdaniel michellemcdaniel commented Sep 6, 2018

In OpenMethodProfileDataLogFile, we try to set the directory and path for the .ibc files using windows slashes (\). This causes this code to fail on Linux, which uses forward slashes. This is particularly a problem when setting COMPlus_ZapBBInstrDir, which takes that environment variable and attempts to find the name of the file using wcsrchr(assemblyPath, '\'). This causes a crash on linux when collecting IBC counts. The fix is to ifdef it for linux to use the correct path separator.

This change also includes a fix to change the code for checking if IbcTuning is set to use == instead of -eq which was causing a failure in the build that was ignored.

src/vm/ceeload.cpp Outdated Show resolved Hide resolved
@michellemcdaniel michellemcdaniel merged commit d81a368 into dotnet:master Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants