Also available in more readable form at: https://github.com/dmlloyd/openjdk/commit/becd36e852e55a29a4685577453944552c817b66
On Fri, Feb 16, 2018 at 4:13 PM, David Lloyd <david.ll...@redhat.com> wrote: > It would be convenient to be able to inflate/deflate a direct or heap > byte buffer without having to copy it through an array first. For my > Friday mini-project this week, I've decided to take a crack at this. > The attached patch is the result. Would anyone be interested in > reviewing and maybe sponsoring this change? It would be really great > to get it in to JDK 11. > > The patch includes a modification to FlaterTest to run through > permutations of using direct and heap byte buffers. Though I couldn't > get jtreg working, I did compile and run the test by hand and it seems > to pass; the build also works fine with the new code. > > Extra thanks to Martin Balao for pointing me towards mapfile-vers when > I couldn't figure out why I was getting UnsatisfiedLinkError. That > one was not obvious. > -- > - DML -- - DML