equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
387 G1RegionToSpaceMapper* bot_storage = |
387 G1RegionToSpaceMapper* bot_storage = |
388 G1RegionToSpaceMapper::create_mapper(bot_rs, |
388 G1RegionToSpaceMapper::create_mapper(bot_rs, |
389 bot_rs.size(), |
389 bot_rs.size(), |
390 os::vm_page_size(), |
390 os::vm_page_size(), |
391 HeapRegion::GrainBytes, |
391 HeapRegion::GrainBytes, |
392 G1BlockOffsetTable::N_bytes, |
392 BOTConstants::N_bytes, |
393 mtGC); |
393 mtGC); |
394 G1BlockOffsetTable bot(heap, bot_storage); |
394 G1BlockOffsetTable bot(heap, bot_storage); |
395 bot_storage->commit_regions(0, num_regions_in_test); |
395 bot_storage->commit_regions(0, num_regions_in_test); |
396 |
396 |
397 // Set up memory regions for the heap regions. |
397 // Set up memory regions for the heap regions. |