]> granicus.if.org Git - gc/commit
Test GCJ object creation with length-based descriptor (gctest)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 5 Dec 2016 22:38:49 +0000 (01:38 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 6 Feb 2017 17:40:35 +0000 (20:40 +0300)
commitd26ba51c1f4e0a1bcae5d1eab6d4eab1f80f707e
treeeef123d2d137207ef97cfdf3a393c68cc0826034
parent39e76b741b805d20f8da8cdc63b2f2312a0ecbba
Test GCJ object creation with length-based descriptor (gctest)

* tests/test.c [GC_GCJ_SUPPORT] (gcj_cons): Define new static variable
obj_cnt; increment obj_cnt on each call; if obj_cnt is odd then pass
gcj_class_struct1 to GC_GCJ_MALLOC instead of gcj_class_struct2.
tests/test.c