Skip to content

Commit b62f9f4

Browse files
committed
Merge pull request #518 from ton/issue-508
Fix issue #508
2 parents cdefdb2 + b6438de commit b62f9f4

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CONTRIBUTORS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,8 @@ In chronological order:
124124
* Dan Kortschak
125125
* [2015-01-07] Added test for drotmg bug #484.
126126

127+
* Ton van den Heuvel <https://github.com/ton>
128+
* [2015-03-18] Fix race condition during shutdown causing a crash in gotoblas_set_affinity().
129+
127130
* [Your name or handle] <[email or website]>
128131
* [Date] [Brief summary of your changes]

driver/others/memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,8 @@ void DESTRUCTOR gotoblas_quit(void) {
13531353

13541354
if (gotoblas_initialized == 0) return;
13551355

1356+
blas_shutdown();
1357+
13561358
#ifdef PROFILE
13571359
moncontrol (0);
13581360
#endif
@@ -1374,8 +1376,6 @@ void DESTRUCTOR gotoblas_quit(void) {
13741376
#ifdef PROFILE
13751377
moncontrol (1);
13761378
#endif
1377-
1378-
blas_shutdown();
13791379
}
13801380

13811381
#if (defined(C_PGI) || (!defined(C_SUN) && defined(F_INTERFACE_SUN))) && (defined(ARCH_X86) || defined(ARCH_X86_64))

0 commit comments

Comments
 (0)