Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GC: don't increment megablock count, when re-use the megablock in free list #32

Merged
merged 1 commit into from Aug 13, 2013

Conversation

mzp
Copy link
Member

@mzp mzp commented Aug 13, 2013

The problem is caused, when _JHC_JGC_LIMITED_NUM_MEGABLOCK is enabled.

The heavy-memory-use program call s_new_megablock via s_alloc. Because s_new_megablock has free list, this does'nt always cause a lack of memory.

But s_new_megablock is increment mega block count on each call. So, we reach to limit before a lack of memory.

@master-q
Copy link
Member

Is the BUG duplicated with _JHC_JGC_NAIVEGC compile flag?

master-q added a commit that referenced this pull request Aug 13, 2013
Fix GC: don't increment megablock count, when re-use the megablock in free list
I'm confused. It's a BUG of my code. Merged.
@master-q master-q merged commit 3728483 into ajhc:arafura Aug 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants