Skip to content

Commit

Permalink
Fix pool lookup function
Browse files Browse the repository at this point in the history
(cherry picked from commit 1bb28ec)
ref #21924
  • Loading branch information
yuyichao authored and tkelman committed Jun 2, 2017
1 parent 68e911b commit 1508d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ JL_DLLEXPORT jl_taggedvalue_t *jl_gc_find_taggedvalue_pool(char *p, size_t *osiz
return NULL;
size_t ofs = p - page_begin;
// Check if this is a free page
if (!(info.pagetable0->allocmap[info.pagetable0_i32 / 32] & (uint32_t)(1 << info.pagetable0_i)))
if (!(info.pagetable0->allocmap[info.pagetable0_i32] & (uint32_t)(1 << info.pagetable0_i)))
return NULL;
int osize = info.meta->osize;
// Shouldn't be needed, just in case
Expand Down

0 comments on commit 1508d44

Please sign in to comment.