We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f5993 commit a0e35b5Copy full SHA for a0e35b5
src/mmtk-gc.c
@@ -56,12 +56,11 @@ static inline void malloc_maybe_collect(jl_ptls_t ptls, size_t sz)
56
// allocation
57
int jl_gc_classify_pools(size_t sz, int *osize)
58
{
59
- if (sz > GC_MAX_SZCLASS)
60
- return -1;
+ if (sz > GC_MAX_SZCLASS)
+ return -1; // call big alloc function
61
size_t allocsz = sz + sizeof(jl_taggedvalue_t);
62
- int klass = jl_gc_szclass(allocsz);
63
*osize = LLT_ALIGN(allocsz, 16);
64
- return (int)(intptr_t)(&((jl_ptls_t)0)->heap.norm_pools[klass]);
+ return 0; // use MMTk's fastpath logic
65
}
66
67
// malloc wrappers, aligned allocation
0 commit comments