Diff for /embedaddon/pcre/sljit/sljitUtils.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2012/02/21 23:50:25 version 1.1.1.3, 2012/10/09 09:19:18
Line 30 Line 30
   
 #if (defined SLJIT_EXECUTABLE_ALLOCATOR && SLJIT_EXECUTABLE_ALLOCATOR) || (defined SLJIT_UTIL_GLOBAL_LOCK && SLJIT_UTIL_GLOBAL_LOCK)  #if (defined SLJIT_EXECUTABLE_ALLOCATOR && SLJIT_EXECUTABLE_ALLOCATOR) || (defined SLJIT_UTIL_GLOBAL_LOCK && SLJIT_UTIL_GLOBAL_LOCK)
   
#ifdef _WIN32#if (defined SLJIT_SINGLE_THREADED && SLJIT_SINGLE_THREADED)
   
   #if (defined SLJIT_EXECUTABLE_ALLOCATOR && SLJIT_EXECUTABLE_ALLOCATOR)
   
   static SLJIT_INLINE void allocator_grab_lock(void)
   {
           /* Always successful. */
   }
   
   static SLJIT_INLINE void allocator_release_lock(void)
   {
           /* Always successful. */
   }
   
   #endif /* SLJIT_EXECUTABLE_ALLOCATOR */
   
   #if (defined SLJIT_UTIL_GLOBAL_LOCK && SLJIT_UTIL_GLOBAL_LOCK)
   
   SLJIT_API_FUNC_ATTRIBUTE void SLJIT_CALL sljit_grab_lock(void)
   {
           /* Always successful. */
   }
   
   SLJIT_API_FUNC_ATTRIBUTE void SLJIT_CALL sljit_release_lock(void)
   {
           /* Always successful. */
   }
   
   #endif /* SLJIT_UTIL_GLOBAL_LOCK */
   
   #elif defined(_WIN32) /* SLJIT_SINGLE_THREADED */
   
 #include "windows.h"  #include "windows.h"
   
 #if (defined SLJIT_EXECUTABLE_ALLOCATOR && SLJIT_EXECUTABLE_ALLOCATOR)  #if (defined SLJIT_EXECUTABLE_ALLOCATOR && SLJIT_EXECUTABLE_ALLOCATOR)
Line 233  SLJIT_API_FUNC_ATTRIBUTE sljit_w SLJIT_CALL sljit_stac Line 263  SLJIT_API_FUNC_ATTRIBUTE sljit_w SLJIT_CALL sljit_stac
         aligned_new_limit = (new_limit + sljit_page_align) & ~sljit_page_align;          aligned_new_limit = (new_limit + sljit_page_align) & ~sljit_page_align;
         aligned_old_limit = (stack->limit + sljit_page_align) & ~sljit_page_align;          aligned_old_limit = (stack->limit + sljit_page_align) & ~sljit_page_align;
         if (aligned_new_limit < aligned_old_limit)          if (aligned_new_limit < aligned_old_limit)
                madvise((void*)aligned_new_limit, aligned_old_limit - aligned_new_limit, MADV_DONTNEED);                posix_madvise((void*)aligned_new_limit, aligned_old_limit - aligned_new_limit, POSIX_MADV_DONTNEED);
         stack->limit = new_limit;          stack->limit = new_limit;
         return 0;          return 0;
 #endif  #endif

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>