each for each class... byte[] and char[] of course cannot mix...at least, cannt mix from java side. I'm not that sure if such black magic can do on jvm side. I don't think it can.
It is not safe to open the containing pool to another class either... java have no friend-class system like cpp Xeno Amess <[email protected]> 于 2021年10月8日周五 上午5:45写道: > each for each class... > > byte[] and char[] of course cannot mix...at least, cannt mix from java > side. I'm not that sure if such black magic can do on jvm side. I don't > think it can. > > It is not safe to open the containing pool to another class either... java > have no friend-class system like cpp > > > Brian Burkhalter <[email protected]> 于2021年10月8日周五 上午5:37写道: > >> Re-directing to the appropriate mailing list, core-libs-dev; please >> exclude jdk-dev from any reply. >> >> How can they be shared when they are different data types, viz., byte vs. >> char? >> >> On Oct 7, 2021, at 2:26 PM, Xeno Amess <[email protected]> wrote: >> >> I just wonder, if it worthy to create static shared pools for skip buffers >> for InputStream and Reader, instead of create one for each instance. >> >> I do think it worthy a try. >> >> pr at https://github.com/openjdk/jdk/pull/5855 >> >> What the next step should I do? >> >> >>
