[Ada] Replace in Ordered_Maps gets tampering failure
authorBob Duff <duff@adacore.com>
Thu, 10 Oct 2019 15:23:08 +0000 (15:23 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 10 Oct 2019 15:23:08 +0000 (15:23 +0000)
commit2f26abccd0f04f87e348cb0127cc24fc7265f06a
treeafd78d8c1adee62fbb28d8d105c091e1def96139
parentc223b7646bff69adeea080fdddc499b30179efec
[Ada] Replace in Ordered_Maps gets tampering failure

2019-10-10  Bob Duff  <duff@adacore.com>

gcc/ada/

* libgnat/a-cbdlli.adb, libgnat/a-cbhama.adb,
libgnat/a-cbhase.adb, libgnat/a-cbmutr.adb,
libgnat/a-cborma.adb, libgnat/a-cborse.adb,
libgnat/a-cdlili.adb, libgnat/a-cidlli.adb,
libgnat/a-cihama.adb, libgnat/a-cihase.adb,
libgnat/a-cimutr.adb, libgnat/a-ciorma.adb,
libgnat/a-ciorse.adb, libgnat/a-cobove.adb,
libgnat/a-cohama.adb, libgnat/a-cohase.adb,
libgnat/a-coinve.adb, libgnat/a-comutr.adb,
libgnat/a-conhel.adb, libgnat/a-convec.adb,
libgnat/a-coorma.adb, libgnat/a-coorse.adb (Reference,
Constant_Reference): Use Busy instead of Lock, so we forbid
tampering with cursors, rather than tampering with elements.

From-SVN: r276813
23 files changed:
gcc/ada/ChangeLog
gcc/ada/libgnat/a-cbdlli.adb
gcc/ada/libgnat/a-cbhama.adb
gcc/ada/libgnat/a-cbhase.adb
gcc/ada/libgnat/a-cbmutr.adb
gcc/ada/libgnat/a-cborma.adb
gcc/ada/libgnat/a-cborse.adb
gcc/ada/libgnat/a-cdlili.adb
gcc/ada/libgnat/a-cidlli.adb
gcc/ada/libgnat/a-cihama.adb
gcc/ada/libgnat/a-cihase.adb
gcc/ada/libgnat/a-cimutr.adb
gcc/ada/libgnat/a-ciorma.adb
gcc/ada/libgnat/a-ciorse.adb
gcc/ada/libgnat/a-cobove.adb
gcc/ada/libgnat/a-cohama.adb
gcc/ada/libgnat/a-cohase.adb
gcc/ada/libgnat/a-coinve.adb
gcc/ada/libgnat/a-comutr.adb
gcc/ada/libgnat/a-conhel.adb
gcc/ada/libgnat/a-convec.adb
gcc/ada/libgnat/a-coorma.adb
gcc/ada/libgnat/a-coorse.adb