Created
June 24, 2020 20:43
-
-
Save tenderlove/92e9c12e09937d2fcd7bb03b9443a241 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* assign heap_page body (contains heap_page_header and RVALUEs) */ | |
page_body = (struct heap_page_body *)rb_aligned_malloc(HEAP_PAGE_ALIGN, HEAP_PAGE_SIZE); | |
if (page_body == 0) { | |
rb_memerror(); | |
} | |
/* assign heap_page entry */ | |
page = calloc1(sizeof(struct heap_page)); | |
if (page == 0) { | |
rb_aligned_free(page_body); | |
rb_memerror(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment