RFR(XS) 8037959: BitMap::resize frees old map before copying memory if !in_resource_area

Thomas Schatzl thomas.schatzl at oracle.com
Wed Apr 2 08:24:41 UTC 2014


Hi Mikael,

On Fri, 2014-03-28 at 13:40 +0100, Mikael Gerdin wrote:
> Hi,
> On Wednesday 26 March 2014 12.25.21 Mikael Gerdin wrote:
> > On Wednesday 26 March 2014 12.01.02 Thomas Schatzl wrote:
> > > On Wed, 2014-03-26 at 11:03 +0100, Mikael Gerdin wrote:
> > > > 
> > > > I've come up with a solution where I add a reallocate() method to
> > > > ArrayAllocator and have BitMap use that for growing its backing memory.
> > > > 
[...]
> > ArrayAllocator.
> 
> I've added a test for the default value of ArrayAllocatorMallocLimit and cases 
> to test both allowing and disallowing malloc use.
> 
> Incremental webrev: http://cr.openjdk.java.net/~mgerdin/8037959/webrev.1.to.2
> Full webrev: http://cr.openjdk.java.net/~mgerdin/8037959/webrev.2

  looks good, thanks.

Thomas



More information about the hotspot-dev mailing list