Skip to content

Commit

Permalink
Merge pull request #21924 from JuliaLang/yyc/gc/debug
Browse files Browse the repository at this point in the history
Fix pool lookup function
  • Loading branch information
yuyichao authored May 17, 2017
2 parents c2992ac + 1bb28ec commit 01fc77c
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 01fc77c

Please sign in to comment.