]> granicus.if.org Git - gc/commit
Remove code duplication in gcj_malloc and malloc_explicitly_typed
authorIvan Maidanski <ivmai@mail.ru>
Wed, 16 May 2018 08:49:33 +0000 (11:49 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 16 May 2018 08:49:33 +0000 (11:49 +0300)
commit888b7da8d2c504ab0f5d0163a58c6e29f5f86f22
treefcbe14b37317db284d7d2b352013777e3e82b913
parente7ba62e0de0d0c42c3732c7b7e82a92e679648a9
Remove code duplication in gcj_malloc and malloc_explicitly_typed
(code refactoring)

* gcj_mlc.c [GC_GCJ_SUPPORT] (GC_gcj_malloc): Store
ptr_to_struct_containing_descr in a single place of code.
* typd_mlc.c (GC_malloc_explicitly_typed_ignore_off_page): Store d (to
the object) in a single place of code.
gcj_mlc.c
typd_mlc.c