[Openmp-commits] [PATCH] D31421: Re-enable assertion after the problem that caused it to be hit had been fixed.

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 28 07:37:50 PDT 2017


AndreyChurbanov created this revision.

The problem of inconsistent pointers to task team in the thread and team structures had been fixed by the commit r249711 (https://reviews.llvm.org/D13353).

Thus the debug assertion can safely be restored.

Tried the test provided in the https://reviews.llvm.org/D11269 which disabled the assertion. That test caused the assertion before r249711, and it work fine now.  Not sure if we can add the test for regression testing because it only makes sense on a debug library.


Repository:
  rL LLVM

https://reviews.llvm.org/D31421

Files:
  runtime/src/kmp_runtime.cpp


Index: runtime/src/kmp_runtime.cpp
===================================================================
--- runtime/src/kmp_runtime.cpp
+++ runtime/src/kmp_runtime.cpp
@@ -2048,11 +2048,7 @@
 
     if ( __kmp_tasking_mode != tskm_immediate_exec ) {
         // Set master's task team to team's task team. Unless this is hot team, it should be NULL.
-#if 0
-        // Patch out an assertion that trips while the runtime seems to operate correctly.
-        // Avoiding the preconditions that cause the assertion to trip has been promised as a forthcoming patch.
         KMP_DEBUG_ASSERT(master_th->th.th_task_team == parent_team->t.t_task_team[master_th->th.th_task_state]);
-#endif
         KA_TRACE( 20, ( "__kmp_fork_call: Master T#%d pushing task_team %p / team %p, new task_team %p / team %p\n",
                       __kmp_gtid_from_thread( master_th ), master_th->th.th_task_team,
                       parent_team, team->t.t_task_team[master_th->th.th_task_state], team ) );


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31421.93237.patch
Type: text/x-patch
Size: 985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170328/261be0c1/attachment-0001.bin>


More information about the Openmp-commits mailing list