Givenadirectbytebuffer,theJavavirtualmachinewillmakeabestefforttoperformnativeI/Ooperationsdirectlyuponit.Thatis,itwillattempttoavoidcopyingthebuffer’scontentto(orfrom)anintermediatebufferbefore(orafter)eachinvocationofoneoftheunderlyingoperatingsystem’snativeI/Ooperations.
Thecontentsofdirectbuffersmayresideoutsideofthenormalgarbage-collectedheap,andsotheirimpactuponthememoryfootprintofanapplicationmightnotbeobvious.
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |