Reducing garbage produced by Java serializer. startObject() now only allocates a new vtable array when it needs to grow.
Reducing garbage produced by Java serializer.
startObject() now only allocates a new vtable array when it needs to grow.

Tested: on Linux.

Change-Id: Idd041605afcb9487a34d63bda067172d797f437a

royalharsh/flatbuffers,FrankStain/flatbuffers,alarouche/flatbuffers,stewartmiles/flatbuffers,DreamHill/flatbuffers,iperry/flatbuffers,wuyan6293/flatbuffers,fuchsia-mirror/third_party-flatbuffers,chenkai036/flatbuffers,RyanTech/flatbuffers,SinbadFreedom/FlatBuffer,alexames/flatbuffers,1yvT0s/flatbuffers,fuchsia-mirror/third_party-flatbuffers,pjulien/flatbuffers,hanhailong/flatbuffers,vanloswang/flatbuffers,zarianw/flatbuffers,google/flatbuffers,RAldrich/flatbuffers,hgl888/flatbuffers,hanhailong/flatbuffers,pakoito/flatbuffers,chenkai036/flatbuffers,1yvT0s/flatbuffers,guker/flatbuffers,vitalyisaev2/flatbuffers,eproxus/flatbuffers,hryang/flatbuffers,uus169/flatbuffers,splhack/flatbuffers,stewartmiles/flatbuffers,jackyglony/flatbuffers,1yvT0s/flatbuffers,zarianw/flatbuffers,kadirahq/flatbuffers,hanhailong/flatbuffers,EricLagergren/flatbuffers,eproxus/flatbuffers,iperry/flatbuffers,felixguendling/flatbuffers,chobie/flatbuffers,pakoito/flatbuffers,yaolinz/flatbuffers,Volcanoscar/flatbuffers,jbrads/flatbuffers,layzerar/flatbuffers,kiyoto-suzuki/flatbuffers,bog-dan-ro/flatbuffers,pjulien/flatbuffers,madvay/flatbuffers,xiaPier/flatbuffers,google/flatbuffers,yaolinz/flatbuffers,KeronTeam/flatbuffers,tieusangaka/flatbuffers,guker/flatbuffers,wuyan6293/flatbuffers,robertfsegal/flatbuffers,chobie/flatbuffers,evolutional/flatbuffers,tieusangaka/flatbuffers,alexames/flatbuffers,stewartmiles/flatbuffers,evanw/flatbuffers,xiaPier/flatbuffers,SinbadFreedom/FlatBuffer,pjulien/flatbuffers,zhuxiaohao/flatbuffers,fengshao0907/flatbuffers,Reimerei/flatbuffers,guker/flatbuffers,evolutional/flatbuffers,evanw/flatbuffers,marschall/flatbuffers,MiCHiLU/flatbuffers,wheelcomplex/flatbuffers,benssson/flatbuffers,hryang/flatbuffers,yiliaofan/flatbuffers,marschall/flatbuffers,mormegil-cz/flatbuffers,rw/flatbuffers,fengshao0907/flatbuffers,radent/flatbuffers,zhuxiaohao/flatbuffers,splhack/flatbuffers,layzerar/flatbuffers,dwillmer/flatbuffers,eproxus/flatbuffers,evolutional/flatbuffers,endorph-soft/flatbuffers,arbitrary-cat/flatbuffers,google/flatbuffers,RAldrich/flatbuffers,guker/flatbuffers,vanloswang/flatbuffers,endorph-soft/flatbuffers,wingahi/flatbuffers,aeneid/flatbuffers,yaolinz/flatbuffers,eburkitt/flatbuffers,FrankStain/flatbuffers,eburkitt/flatbuffers,zhuxiaohao/flatbuffers,kadirahq/flatbuffers,fuchsia-mirror/third_party-flatbuffers,KeronTeam/flatbuffers,jasonstubbs/flatbuffers,xiaPier/flatbuffers,madvay/flatbuffers,wingahi/flatbuffers,kadirahq/flatbuffers,DreamHill/flatbuffers,alarouche/flatbuffers,chenkai036/flatbuffers,robertfsegal/flatbuffers,robertfsegal/flatbuffers,tieusangaka/flatbuffers,1yvT0s/flatbuffers,jasonstubbs/flatbuffers,1yvT0s/flatbuffers,chobie/flatbuffers,endorph-soft/flatbuffers,FrankStain/flatbuffers,royalharsh/flatbuffers,i17c/flatbuffers,davidnasar/flatbuffers,eburkitt/flatbuffers,RAldrich/flatbuffers,uus169/flatbuffers,chenkai036/flatbuffers,FrankStain/flatbuffers,robertfsegal/flatbuffers,JackLian/flatbuffers,wheelcomplex/flatbuffers,royalharsh/flatbuffers,splhack/flatbuffers,brunoqc/flatbuffers,kiyoto-suzuki/flatbuffers,kiyoto-suzuki/flatbuffers,iperry/flatbuffers,Reimerei/flatbuffers,uus169/flatbuffers,royalharsh/flatbuffers,KeronTeam/flatbuffers,wingahi/flatbuffers,kiyoto-suzuki/flatbuffers,evolutional/flatbuffers,MiCHiLU/flatbuffers,xiaPier/flatbuffers,kiyoto-suzuki/flatbuffers,stewartmiles/flatbuffers,bog-dan-ro/flatbuffers,JackLian/flatbuffers,chenkai036/flatbuffers,EricLagergren/flatbuffers,pakoito/flatbuffers,alarouche/flatbuffers,jasonstubbs/flatbuffers,stewartmiles/flatbuffers,zarianw/flatbuffers,DavadDi/flatbuffers,fuchsia-mirror/third_party-flatbuffers,chenkai036/flatbuffers,alexames/flatbuffers,alexames/flatbuffers,DreamHill/flatbuffers,jackyglony/flatbuffers,DavadDi/flatbuffers,SinbadFreedom/FlatBuffer,hgl888/flatbuffers,aeneid/flatbuffers,RAldrich/flatbuffers,Belxjander/flatbuffers,yiliaofan/flatbuffers,iperry/flatbuffers,DavadDi/flatbuffers,wuyan6293/flatbuffers,rw/flatbuffers,hgl888/flatbuffers,xudeheng/flatbuffers,chobie/flatbuffers,Belxjander/flatbuffers,yaolinz/flatbuffers,robertfsegal/flatbuffers,pakoito/flatbuffers,royalharsh/flatbuffers,pjulien/flatbuffers,zhuxiaohao/flatbuffers,uus169/flatbuffers,kadirahq/flatbuffers,stewartmiles/flatbuffers,ajrulez/flatbuffers,ajrulez/flatbuffers,robertfsegal/flatbuffers,vitalyisaev2/flatbuffers,eburkitt/flatbuffers,davidnasar/flatbuffers,kusharami/flatbuffers,uus169/flatbuffers,pjulien/flatbuffers,benssson/flatbuffers,benssson/flatbuffers,fuchsia-mirror/third_party-flatbuffers,wheelcomplex/flatbuffers,1yvT0s/flatbuffers,FrankStain/flatbuffers,RyanTech/flatbuffers,kadirahq/flatbuffers,davidnasar/flatbuffers,eproxus/flatbuffers,eburkitt/flatbuffers,rw/flatbuffers,ThomasBrixLarsen/flatbuffers,alexames/flatbuffers,royalharsh/flatbuffers,madvay/flatbuffers,chobie/flatbuffers,royalharsh/flatbuffers,pjulien/flatbuffers,jasonstubbs/flatbuffers,yiliaofan/flatbuffers,iperry/flatbuffers,google/flatbuffers,jbrads/flatbuffers,stewartmiles/flatbuffers,jekinchen/flatjni,onecityuni/flatbuffers,JackLian/flatbuffers,bog-dan-ro/flatbuffers,evolutional/flatbuffers,layzerar/flatbuffers,ajrulez/flatbuffers,evolutional/flatbuffers,xudeheng/flatbuffers,ThomasBrixLarsen/flatbuffers,bog-dan-ro/flatbuffers,pjulien/flatbuffers,MiCHiLU/flatbuffers,cogumbreiro/flatbuffers,bog-dan-ro/flatbuffers,vitalyisaev2/flatbuffers,jasonstubbs/flatbuffers,fuchsia-mirror/third_party-flatbuffers,felixguendling/flatbuffers,rw/flatbuffers,JackLian/flatbuffers,fengshao0907/flatbuffers,benssson/flatbuffers,yiliaofan/flatbuffers,ThomasBrixLarsen/flatbuffers,jekinchen/flatjni,alexames/flatbuffers,davidnasar/flatbuffers,dwillmer/flatbuffers,kusharami/flatbuffers,Volcanoscar/flatbuffers,vanloswang/flatbuffers,alarouche/flatbuffers,endorph-soft/flatbuffers,ThomasBrixLarsen/flatbuffers,chobie/flatbuffers,Reimerei/flatbuffers,dwillmer/flatbuffers,wuyan6293/flatbuffers,evolutional/flatbuffers,google/flatbuffers,MiCHiLU/flatbuffers,chobie/flatbuffers,zarianw/flatbuffers,Volcanoscar/flatbuffers,google/flatbuffers,dwillmer/flatbuffers,alexames/flatbuffers,radent/flatbuffers,i17c/flatbuffers,alexames/flatbuffers,Reimerei/flatbuffers,vitalyisaev2/flatbuffers,arbitrary-cat/flatbuffers,alexames/flatbuffers,evanw/flatbuffers,mormegil-cz/flatbuffers,fengshao0907/flatbuffers,splhack/flatbuffers,google/flatbuffers,kiyoto-suzuki/flatbuffers,JackLian/flatbuffers,hanhailong/flatbuffers,stewartmiles/flatbuffers,chenkai036/flatbuffers,vitalyisaev2/flatbuffers,jackyglony/flatbuffers,google/flatbuffers,iperry/flatbuffers,DavadDi/flatbuffers,hryang/flatbuffers,Reimerei/flatbuffers,zarianw/flatbuffers,chenkai036/flatbuffers,dwillmer/flatbuffers,radent/flatbuffers,ajrulez/flatbuffers,felixguendling/flatbuffers,fuchsia-mirror/third_party-flatbuffers,google/flatbuffers,alexames/flatbuffers,cogumbreiro/flatbuffers,eburkitt/flatbuffers,aeneid/flatbuffers,endorph-soft/flatbuffers,evolutional/flatbuffers,evolutional/flatbuffers,brunoqc/flatbuffers,mormegil-cz/flatbuffers,onecityuni/flatbuffers,bog-dan-ro/flatbuffers,arbitrary-cat/flatbuffers,zarianw/flatbuffers,zarianw/flatbuffers,vanloswang/flatbuffers,layzerar/flatbuffers,cogumbreiro/flatbuffers,kadirahq/flatbuffers,yiliaofan/flatbuffers,stewartmiles/flatbuffers,zarianw/flatbuffers,jasonstubbs/flatbuffers,splhack/flatbuffers,radent/flatbuffers,cogumbreiro/flatbuffers,tieusangaka/flatbuffers,brunoqc/flatbuffers,eproxus/flatbuffers,rw/flatbuffers,felixguendling/flatbuffers,jekinchen/flatjni,SinbadFreedom/FlatBuffer,evanw/flatbuffers,splhack/flatbuffers,FrankStain/flatbuffers,aeneid/flatbuffers,DreamHill/flatbuffers,wingahi/flatbuffers,lulufei/flatbuffers,ThomasBrixLarsen/flatbuffers,arbitrary-cat/flatbuffers,jackyglony/flatbuffers,vitalyisaev2/flatbuffers,yiliaofan/flatbuffers,SinbadFreedom/FlatBuffer,KeronTeam/flatbuffers,splhack/flatbuffers,wingahi/flatbuffers,madvay/flatbuffers,evolutional/flatbuffers,Volcanoscar/flatbuffers,radent/flatbuffers,jekinchen/flatjni,google/flatbuffers,rw/flatbuffers,benssson/flatbuffers,tieusangaka/flatbuffers,rw/flatbuffers,google/flatbuffers,brunoqc/flatbuffers,rw/flatbuffers,google/flatbuffers,evanw/flatbuffers,jbrads/flatbuffers,lulufei/flatbuffers,layzerar/flatbuffers,xiaPier/flatbuffers,fuchsia-mirror/third_party-flatbuffers,zhuxiaohao/flatbuffers,kadirahq/flatbuffers,splhack/flatbuffers,EricLagergren/flatbuffers,chenkai036/flatbuffers,lulufei/flatbuffers,jbrads/flatbuffers,jekinchen/flatjni,i17c/flatbuffers,evolutional/flatbuffers,chenkai036/flatbuffers,royalharsh/flatbuffers,kadirahq/flatbuffers,kusharami/flatbuffers,vanloswang/flatbuffers,eproxus/flatbuffers,kiyoto-suzuki/flatbuffers,rw/flatbuffers,pakoito/flatbuffers,evolutional/flatbuffers,evolutional/flatbuffers,i17c/flatbuffers,evanw/flatbuffers,google/flatbuffers,davidnasar/flatbuffers,Reimerei/flatbuffers,jasonstubbs/flatbuffers,vitalyisaev2/flatbuffers,layzerar/flatbuffers,hryang/flatbuffers,Belxjander/flatbuffers,fengshao0907/flatbuffers,wuyan6293/flatbuffers,Volcanoscar/flatbuffers,xudeheng/flatbuffers,benssson/flatbuffers,ajrulez/flatbuffers,lulufei/flatbuffers,FrankStain/flatbuffers,kusharami/flatbuffers,stewartmiles/flatbuffers,wheelcomplex/flatbuffers,benssson/flatbuffers,KeronTeam/flatbuffers,marschall/flatbuffers,alexames/flatbuffers,marschall/flatbuffers,SinbadFreedom/FlatBuffer,jekinchen/flatjni,hryang/flatbuffers,i17c/flatbuffers,endorph-soft/flatbuffers,xudeheng/flatbuffers,alexames/flatbuffers,zhuxiaohao/flatbuffers,yaolinz/flatbuffers,jekinchen/flatjni,pakoito/flatbuffers,stewartmiles/flatbuffers,hryang/flatbuffers,Volcanoscar/flatbuffers,cogumbreiro/flatbuffers,ThomasBrixLarsen/flatbuffers,RyanTech/flatbuffers,arbitrary-cat/flatbuffers,alexames/flatbuffers,alarouche/flatbuffers,alexames/flatbuffers,jackyglony/flatbuffers,RAldrich/flatbuffers,EricLagergren/flatbuffers,brunoqc/flatbuffers,RyanTech/flatbuffers,vanloswang/flatbuffers,jbrads/flatbuffers,vitalyisaev2/flatbuffers,aeneid/flatbuffers,alexames/flatbuffers,google/flatbuffers,Belxjander/flatbuffers,jasonstubbs/flatbuffers,eburkitt/flatbuffers,aeneid/flatbuffers,ajrulez/flatbuffers,wheelcomplex/flatbuffers,onecityuni/flatbuffers,pjulien/flatbuffers,madvay/flatbuffers,cogumbreiro/flatbuffers,wuyan6293/flatbuffers,pjulien/flatbuffers,fengshao0907/flatbuffers,pjulien/flatbuffers,kusharami/flatbuffers,jackyglony/flatbuffers,Belxjander/flatbuffers,benssson/flatbuffers,DreamHill/flatbuffers,endorph-soft/flatbuffers,stewartmiles/flatbuffers,uus169/flatbuffers,xiaPier/flatbuffers,RyanTech/flatbuffers,wheelcomplex/flatbuffers,pjulien/flatbuffers,endorph-soft/flatbuffers,davidnasar/flatbuffers,eburkitt/flatbuffers,google/flatbuffers,EricLagergren/flatbuffers,kiyoto-suzuki/flatbuffers,guker/flatbuffers,FrankStain/flatbuffers,MiCHiLU/flatbuffers,iperry/flatbuffers,jbrads/flatbuffers,kiyoto-suzuki/flatbuffers,royalharsh/flatbuffers,MiCHiLU/flatbuffers,mormegil-cz/flatbuffers,lulufei/flatbuffers,bog-dan-ro/flatbuffers,lulufei/flatbuffers,RyanTech/flatbuffers,iperry/flatbuffers,mormegil-cz/flatbuffers,MiCHiLU/flatbuffers,i17c/flatbuffers,alarouche/flatbuffers,KeronTeam/flatbuffers,chobie/flatbuffers,onecityuni/flatbuffers,tieusangaka/flatbuffers,Belxjander/flatbuffers,royalharsh/flatbuffers,EricLagergren/flatbuffers,RAldrich/flatbuffers,hgl888/flatbuffers,xudeheng/flatbuffers,wheelcomplex/flatbuffers,jekinchen/flatjni,marschall/flatbuffers,evanw/flatbuffers,wheelcomplex/flatbuffers,guker/flatbuffers,SinbadFreedom/FlatBuffer,felixguendling/flatbuffers,jekinchen/flatjni,hgl888/flatbuffers,mormegil-cz/flatbuffers,wingahi/flatbuffers,marschall/flatbuffers,DavadDi/flatbuffers,xudeheng/flatbuffers,stewartmiles/flatbuffers,hanhailong/flatbuffers,hanhailong/flatbuffers,jekinchen/flatjni,rw/flatbuffers,Reimerei/flatbuffers,pjulien/flatbuffers,dwillmer/flatbuffers,DreamHill/flatbuffers,jbrads/flatbuffers,jbrads/flatbuffers,EricLagergren/flatbuffers,SinbadFreedom/FlatBuffer,yaolinz/flatbuffers,hgl888/flatbuffers,bog-dan-ro/flatbuffers,endorph-soft/flatbuffers,evanw/flatbuffers,brunoqc/flatbuffers,onecityuni/flatbuffers,MiCHiLU/flatbuffers,JackLian/flatbuffers,EricLagergren/flatbuffers,rw/flatbuffers,felixguendling/flatbuffers,endorph-soft/flatbuffers,DavadDi/flatbuffers,rw/flatbuffers,layzerar/flatbuffers