[Openmp-commits] [PATCH] D21336: Bug fix: crash if teams executed on host.

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Thu Jun 16 11:54:33 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL272935: Bug fix: crash if teams executed on host (authored by jlpeyton).

Changed prior to commit:
  http://reviews.llvm.org/D21336?vs=60725&id=61005#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D21336

Files:
  openmp/trunk/runtime/src/kmp_runtime.c

Index: openmp/trunk/runtime/src/kmp_runtime.c
===================================================================
--- openmp/trunk/runtime/src/kmp_runtime.c
+++ openmp/trunk/runtime/src/kmp_runtime.c
@@ -1494,6 +1494,7 @@
         //     The team is actual (hot), all workers are ready at the fork barrier.
         //     No lock needed to initialize the team a bit, then free workers.
         parent_team->t.t_ident = loc;
+        __kmp_alloc_argv_entries( argc, parent_team, TRUE );
         parent_team->t.t_argc  = argc;
         argv = (void**)parent_team->t.t_argv;
         for( i=argc-1; i >= 0; --i )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21336.61005.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160616/fdf94bea/attachment-0001.bin>


More information about the Openmp-commits mailing list