Commit 366a73b
[Java.Interop.Tools.Cecil] Fix retry logic in ReadAssembly to skip symbol loading
The retry in ReadAssembly sets reader_parameters.ReadSymbols = false,
but LoadFromMemoryMappedFile checks the instance field loadDebugSymbols
instead, so the retry re-opens the same locked PDB file and throws
the same IOException.
Fix by passing an explicit loadSymbols parameter to
LoadFromMemoryMappedFile so the retry can actually skip symbol loading.
Also skip the try/catch entirely when loadDebugSymbols is false, since
there is nothing to retry in that case.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c7b4ea6 commit 366a73b
File tree
1 file changed
+9
-6
lines changed- src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil
1 file changed
+9
-6
lines changedLines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
164 | 167 | | |
165 | | - | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
172 | | - | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
178 | | - | |
| 181 | + | |
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
182 | | - | |
| 185 | + | |
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
190 | | - | |
| 193 | + | |
191 | 194 | | |
192 | | - | |
| 195 | + | |
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
| |||
0 commit comments