Refs #478, #482. Fix segfault bug for gemv_t with MAX_ALLOC_STACK flag.

For gemv_t, directly use malloc to create the buffer.
This commit is contained in:
Zhang Xianyi
2015-04-13 19:45:27 -05:00
parent 62231ab337
commit 9798481979
3 changed files with 32 additions and 8 deletions

View File

@@ -1161,6 +1161,16 @@ void blas_memory_free(void *free_area){
return;
}
void *blas_memory_alloc_nolock(int unused) {
void *map_address;
map_address = (void *)malloc(BUFFER_SIZE + FIXED_PAGESIZE);
return map_address;
}
void blas_memory_free_nolock(void * map_address) {
free(map_address);
}
void blas_shutdown(void){
int pos;