mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
solaris/illumos build fix.
This commit is contained in:
parent
7e8a9af9db
commit
5e16c3a12a
Notes:
git
2021-03-22 22:51:36 +09:00
2 changed files with 3 additions and 1 deletions
|
@ -1463,7 +1463,7 @@ ranges_include(DebugInfoReader *reader, ranges_t *ptr, uint64_t addr)
|
|||
}
|
||||
break;
|
||||
case DW_RLE_base_address:
|
||||
base_address = read_dw_form_addr(reader, &p);
|
||||
base_address = (uintptr_t)read_dw_form_addr(reader, &p);
|
||||
break;
|
||||
case DW_RLE_start_end:
|
||||
read_dw_form_addr(reader, &p);
|
||||
|
|
2
cont.c
2
cont.c
|
@ -646,6 +646,8 @@ fiber_pool_stack_free(struct fiber_pool_stack * stack)
|
|||
#if VM_CHECK_MODE > 0 && defined(MADV_DONTNEED)
|
||||
// This immediately discards the pages and the memory is reset to zero.
|
||||
madvise(base, size, MADV_DONTNEED);
|
||||
#elif defined(POSIX_MADV_DONTNEED)
|
||||
posix_madvise(base, size, POSIX_MADV_DONTNEED);
|
||||
#elif defined(MADV_FREE_REUSABLE)
|
||||
madvise(base, size, MADV_FREE_REUSABLE);
|
||||
#elif defined(MADV_FREE)
|
||||
|
|
Loading…
Reference in a new issue