Commit 0e240cd
authored
Fix ilread cache (#1605)
While working on FSharp.Compiler.Service for .NET Core I noticed that there is a flaw in the cache used for IL readers in ilread.fs: the cache key should include the primary assembly name (i.e. the cache could incorrectly confuse mscorlib-based interpretations of assemblies with System.Runtime-based interpretations).
For example this could repro in situations where Visual Studio was being used to edit a mix of projects using both System.Runtime Profiles and mscorlib profiles.
This is significant enough that we need to integrate the fix back into this repo.
* fix ilread cache
* fix build1 parent f6b3c33 commit 0e240cd
3 files changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3713 | 3713 | | |
3714 | 3714 | | |
3715 | 3715 | | |
3716 | | - | |
3717 | | - | |
3718 | | - | |
3719 | | - | |
3720 | 3716 | | |
3721 | 3717 | | |
3722 | 3718 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
586 | 585 | | |
587 | 586 | | |
588 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
| 1339 | + | |
| 1340 | + | |
1339 | 1341 | | |
| 1342 | + | |
1340 | 1343 | | |
1341 | 1344 | | |
1342 | 1345 | | |
1343 | 1346 | | |
1344 | | - | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1345 | 1350 | | |
1346 | 1351 | | |
1347 | 1352 | | |
1348 | 1353 | | |
1349 | 1354 | | |
1350 | 1355 | | |
| 1356 | + | |
| 1357 | + | |
1351 | 1358 | | |
| 1359 | + | |
1352 | 1360 | | |
1353 | 1361 | | |
1354 | 1362 | | |
1355 | 1363 | | |
1356 | 1364 | | |
1357 | | - | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1358 | 1368 | | |
1359 | 1369 | | |
1360 | 1370 | | |
| |||
0 commit comments