RFR  BufferedInputStream calculates negative array size with large streams and mark
ivan.gerasimov at oracle.com
Sun Aug 25 19:28:04 UTC 2013
Thank you Alan!
> This looks much better (although I'm still wondering about greedy
> tests wanting to reserve 4GB when running tests concurrently). But
> let's go with what you have for now. One small suggestion is to assume
> "PARENT" when invoking without any args as that will make it easier to
> run interactively. I'm happy to sponsor this, just send me a link to
> the change-set.
I couldn't come up with any idea on how to test the overflow without
actually allocating that much memory.
I simplified the test a bit once again. Instead of invoking the same
class twice, I created a designated class for the child.
Here's the new webrev:
Hope it looks fine.
And here's the exported change set:
More information about the core-libs-dev