[Bug fortran/121429] [caf_shmem] Test fails without explicit SYNC ALL

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 26 17:21:24 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121429

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jerry DeLisle <jvdelisle@gcc.gnu.org>:

https://gcc.gnu.org/g:be90cfa22cb4e3cea7ffb4ca429829381369a8d2

commit r16-7737-gbe90cfa22cb4e3cea7ffb4ca429829381369a8d2
Author: Jerry DeLisle <jvdelisle@gcc.gnu.org>
Date:   Sat Feb 14 15:46:44 2026 -0800

    Fortran: Adjust test to work with multiple images.

    The testcase would fail occasionally with multiple images because the
    use of acquired_lock is a non-blocking LOCK. Only UNLOCK this if the
    LOCK was acquired. Keep track of the loop count and bail out if the
    limit is reached.

    During testing it was observed that the loop count could go as high as
    33 times depending on system conditions, running the test outside the
    testsuite 1000's of times.

            PR fortran/121429

    gcc/testsuite/ChangeLog:

            * gfortran.dg/coarray/lock_1.f90: Updated.


More information about the Gcc-bugs mailing list