Commit 9607398
committed
internal/filedesc: remove duplicative Message.unmarshalOptions
A user reported a data race when calling the IsMapEntry and Options accessors
concurrently: golang/protobuf#1701
Originally, I wanted to suggest moving the md.L1.IsMapEntry / md.L1.IsMessageSet
assignments into Message.unmarshalSeedOptions when I realized that these fields
are already set in unmarshalSeedOptions!
Therefore, we can entirely remove Message.unmarshalOptions in favor of
Message.unmarshalSeedOptions. All tests continue to pass, both within Go
Protobuf itself, and also all Google tests (Global Presubmit, cl/832261606).
Resolves golang/protobuf#1701
Change-Id: Ieb4dbddd11f4a123ba01d3c10fed4d16bee0791a
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/720980
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Lasse Folger <lassefolger@google.com>1 parent 792d359 commit 9607398
1 file changed
Lines changed: 0 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | 333 | | |
335 | 334 | | |
336 | 335 | | |
| |||
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | 358 | | |
381 | 359 | | |
382 | 360 | | |
| |||
0 commit comments