equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2018, 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. |
62 _reserved = MemRegion((HeapWord*)virtual_space()->low_boundary(), |
62 _reserved = MemRegion((HeapWord*)virtual_space()->low_boundary(), |
63 (HeapWord*)virtual_space()->high_boundary()); |
63 (HeapWord*)virtual_space()->high_boundary()); |
64 |
64 |
65 MemRegion cmr((HeapWord*)virtual_space()->low(), |
65 MemRegion cmr((HeapWord*)virtual_space()->low(), |
66 (HeapWord*)virtual_space()->high()); |
66 (HeapWord*)virtual_space()->high()); |
67 ParallelScavengeHeap::heap()->barrier_set()->resize_covered_region(cmr); |
67 ParallelScavengeHeap::heap()->card_table()->resize_covered_region(cmr); |
68 |
68 |
69 if (ZapUnusedHeapArea) { |
69 if (ZapUnusedHeapArea) { |
70 // Mangle newly committed space immediately because it |
70 // Mangle newly committed space immediately because it |
71 // can be done here more simply that after the new |
71 // can be done here more simply that after the new |
72 // spaces have been computed. |
72 // spaces have been computed. |
868 (eden_space()->bottom() < from_space()->bottom()), |
868 (eden_space()->bottom() < from_space()->bottom()), |
869 "Eden is assumed to be below the survivor spaces"); |
869 "Eden is assumed to be below the survivor spaces"); |
870 |
870 |
871 MemRegion cmr((HeapWord*)virtual_space()->low(), |
871 MemRegion cmr((HeapWord*)virtual_space()->low(), |
872 (HeapWord*)virtual_space()->high()); |
872 (HeapWord*)virtual_space()->high()); |
873 ParallelScavengeHeap::heap()->barrier_set()->resize_covered_region(cmr); |
873 ParallelScavengeHeap::heap()->card_table()->resize_covered_region(cmr); |
874 space_invariants(); |
874 space_invariants(); |
875 } |
875 } |
876 |
876 |
877 |
877 |
878 |
878 |