Commit c23b860
[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.
When loadDebugSymbols is false, rethrow immediately since there is
nothing to retry.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c7b4ea6 commit c23b860
1 file changed
Lines changed: 8 additions & 6 deletions
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
172 | | - | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
178 | | - | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
182 | | - | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
190 | | - | |
| 192 | + | |
191 | 193 | | |
192 | | - | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
0 commit comments