1
1

* for some reason, some versions of linux didn't like that call to mmap. The

test isn't really needed to make sure the malloc intercept code was working,
  so just revert to not checking for now.  
  
  This should go to the 1.0 branch, as what is there now is causing issues.

This commit was SVN r8081.
Этот коммит содержится в:
Brian Barrett 2005-11-10 04:13:56 +00:00
родитель 405d9794f8
Коммит d542e14120

Просмотреть файл

@ -52,7 +52,6 @@ static int have_been_called = 0;
int
opal_mem_free_init(void)
{
void *tmp;
OBJ_CONSTRUCT(&callback_list, opal_list_t);
opal_atomic_init(&callback_lock, OPAL_ATOMIC_UNLOCKED);
@ -61,19 +60,6 @@ opal_mem_free_init(void)
run_callbacks = false;
opal_atomic_mb();
/* make sure things actually work - map then unmap a page */
tmp = mmap(0, 1, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0);
munmap(tmp, 1);
if (0 == have_been_called) {
if (have_free_support) {
opal_output(0, "WARNING: free() and munmap() hooks inoperative"
"disabling memory hooks. This");
opal_output(0, "WARNING: may cause performance degredation.");
}
have_free_support = false;
}
return OMPI_SUCCESS;
}