aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnat/a-cobove.adb
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2019-10-10 15:23:08 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-10-10 15:23:08 +0000
commit2f26abccd0f04f87e348cb0127cc24fc7265f06a (patch)
treeafd78d8c1adee62fbb28d8d105c091e1def96139 /gcc/ada/libgnat/a-cobove.adb
parentc223b7646bff69adeea080fdddc499b30179efec (diff)
downloadgcc-2f26abccd0f04f87e348cb0127cc24fc7265f06a.zip
gcc-2f26abccd0f04f87e348cb0127cc24fc7265f06a.tar.gz
gcc-2f26abccd0f04f87e348cb0127cc24fc7265f06a.tar.bz2
[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
Diffstat (limited to 'gcc/ada/libgnat/a-cobove.adb')
-rw-r--r--gcc/ada/libgnat/a-cobove.adb10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ada/libgnat/a-cobove.adb b/gcc/ada/libgnat/a-cobove.adb
index 3e48bc6..7508794 100644
--- a/gcc/ada/libgnat/a-cobove.adb
+++ b/gcc/ada/libgnat/a-cobove.adb
@@ -402,7 +402,7 @@ package body Ada.Containers.Bounded_Vectors is
(Element => A (J)'Access,
Control => (Controlled with TC))
do
- Lock (TC.all);
+ Busy (TC.all);
end return;
end;
end Constant_Reference;
@@ -426,7 +426,7 @@ package body Ada.Containers.Bounded_Vectors is
(Element => A (J)'Access,
Control => (Controlled with TC))
do
- Lock (TC.all);
+ Busy (TC.all);
end return;
end;
end Constant_Reference;
@@ -2067,7 +2067,7 @@ package body Ada.Containers.Bounded_Vectors is
TC : constant Tamper_Counts_Access := Container.TC'Unrestricted_Access;
begin
return R : constant Reference_Control_Type := (Controlled with TC) do
- Lock (TC.all);
+ Busy (TC.all);
end return;
end Pseudo_Reference;
@@ -2183,7 +2183,7 @@ package body Ada.Containers.Bounded_Vectors is
(Element => A (J)'Access,
Control => (Controlled with TC))
do
- Lock (TC.all);
+ Busy (TC.all);
end return;
end;
end Reference;
@@ -2207,7 +2207,7 @@ package body Ada.Containers.Bounded_Vectors is
(Element => A (J)'Access,
Control => (Controlled with TC))
do
- Lock (TC.all);
+ Busy (TC.all);
end return;
end;
end Reference;