{"push_id":1044884197,"size":1,"distinct_size":1,"ref":"refs/heads/trunk","head":"49369ef17316cd5d5819b038f286e1d951972b52","before":"555f6cb089a63204587fb7555ce92751d28ec89f","commits":[{"sha":"49369ef17316cd5d5819b038f286e1d951972b52","author":{"email":"7c603ddb31336b975100ce924ca69f4ad3ace368@b2dd03c8-39d4-4d8f-98ff-823fe69b080e","name":"ko1"},"message":"* gc.c: simplify allocate/free detecting logic at the end of marking.\n\n  Before this change, heap_pages_min_slots are calculated at the\n  beggining sweeping phase. And this value is used at the end of\n  *next* marking phase.\n\n  To simplify it, we use this value at the end of this marking phase.\n  It means that we don't need to store this value as global state.\n\n  Also heap_pages_max_slots is calculated at the begging of sweeping\n  phase and used at the end of sweeping phase.\n  To simplify this logic, we introduced new global value\n  heap_pages_freeable_pages it means extra pages count we can free.\n  gc_sweep_step() checks this value and moves empty pages to tomb_heap\n  not more than this value.\n\n  Because of this fix, heap_pages_swept_slots is no longer needed.\n\n* gc.c (rb_objspace_t::heap_pages): restruct the objspace global\n  status.\n\n  remove the following fileds\n    * swept_slots (and heap_pages_swept_slots)\n    * min_free_slots (and heap_pages_min_free_slots)\n    * max_free_slots (and heap_pages_max_free_slots)\n  And add the following filed.\n    * freeable_pages (and heap_pages_freeable_pages)\n\n* gc.c (heap_pages_free_unused_pages): unlink tomb heap pages\n  because tomb heap should have only freeable pages.\n\n* gc.c (heap_extend_pages): add parameters for future extension.\n\n\ngit-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e","distinct":true,"url":"https://api.github.com/repos/ruby/ruby/commits/49369ef17316cd5d5819b038f286e1d951972b52"}]}