1
1

Fix a problem noted by Julian Seward: MAKE_MEM_UNDEFINED is not the

opposite of MAKE_MEM_DEFINED. Also add in a call to NOACCESS to
(mostly) reverse the effects of MAKE_MEM_DEFINED (technically, page 0
was accessible before this, even though it's a Bad Idea to access it).

This commit was SVN r22056.
Этот коммит содержится в:
Jeff Squyres 2009-10-06 17:55:49 +00:00
родитель 932b43be04
Коммит 977574bd45

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

@ -56,6 +56,7 @@ int PLPA_NAME(api_probe_init)(void)
rc = syscall(__NR_sched_setaffinity, 0, tmp, NULL);
#if PLPA_WANT_VALGRIND_SUPPORT
VALGRIND_MAKE_MEM_UNDEFINED(0, len);
VALGRIND_MAKE_MEM_NOACCESS(0, len);
#endif
if ((rc < 0) && (errno == EFAULT)) {
cache = PLPA_NAME_CAPS(PROBE_OK);