Are Java DirectByteBuffer wrappers garbage collected?

后端 未结 4 725
灰色年华
灰色年华 2020-12-08 05:52

I understand that when a directbytebuffer is allocated, its not subject to garbage collection, but what I\'m wondering is if the wrapping object is garbage collecte

4条回答
  •  情深已故
    2020-12-08 06:16

    when a directbytebuffer is allocated, its not subject to garbage collection

    Where did you get that idea? It's not correct. Are you getting them mixed up with MappedByteBuffers?

提交回复
热议问题