hotspot/src/share/vm/gc_implementation/parallelScavenge/psMarkSweepDecorator.cpp
author coleenp
Sat, 01 Sep 2012 13:25:18 -0400
changeset 13728 882756847a04
parent 11170 7663e46f3a54
child 15088 8875e774f1a3
permissions -rw-r--r--
6964458: Reimplement class meta-data storage to use native memory Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 11170
diff changeset
     2
 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2105
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2105
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2105
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    25
#include "precompiled.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    26
#include "classfile/systemDictionary.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
#include "gc_implementation/parallelScavenge/objectStartArray.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
#include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "gc_implementation/parallelScavenge/psMarkSweep.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    30
#include "gc_implementation/parallelScavenge/psMarkSweepDecorator.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    31
#include "gc_implementation/shared/liveRange.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    32
#include "gc_implementation/shared/markSweep.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    33
#include "gc_implementation/shared/spaceDecorator.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    34
#include "oops/oop.inline.hpp"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
PSMarkSweepDecorator* PSMarkSweepDecorator::_destination_decorator = NULL;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
void PSMarkSweepDecorator::set_destination_decorator_tenured() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
  ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
  assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "Sanity");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
  _destination_decorator = heap->old_gen()->object_mark_sweep();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
void PSMarkSweepDecorator::advance_destination_decorator() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
  ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "Sanity");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  assert(_destination_decorator != NULL, "Sanity");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  PSMarkSweepDecorator* first = heap->old_gen()->object_mark_sweep();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  PSMarkSweepDecorator* second = heap->young_gen()->eden_mark_sweep();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
  PSMarkSweepDecorator* third = heap->young_gen()->from_mark_sweep();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  PSMarkSweepDecorator* fourth = heap->young_gen()->to_mark_sweep();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
  if ( _destination_decorator == first ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
    _destination_decorator = second;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
  } else if ( _destination_decorator == second ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
    _destination_decorator = third;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
  } else if ( _destination_decorator == third ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
    _destination_decorator = fourth;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
  } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
    fatal("PSMarkSweep attempting to advance past last compaction area");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
PSMarkSweepDecorator* PSMarkSweepDecorator::destination_decorator() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
  assert(_destination_decorator != NULL, "Sanity");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
  return _destination_decorator;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
// FIX ME FIX ME FIX ME FIX ME!!!!!!!!!
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
// The object forwarding code is duplicated. Factor this out!!!!!
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
// This method "precompacts" objects inside its space to dest. It places forwarding
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
// pointers into markOops for use by adjust_pointers. If "dest" should overflow, we
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
// finish by compacting into our own space.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
void PSMarkSweepDecorator::precompact() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  // Reset our own compact top.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  set_compaction_top(space()->bottom());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  /* We allow some amount of garbage towards the bottom of the space, so
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
   * we don't start compacting before there is a significant gain to be made.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
   * Occasionally, we want to ensure a full compaction, which is determined
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
   * by the MarkSweepAlwaysCompactCount parameter. This is a significant
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
   * performance improvement!
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
   */
11170
7663e46f3a54 7110718: -XX:MarkSweepAlwaysCompactCount=0 crashes the JVM
brutisso
parents: 7397
diff changeset
    91
  bool skip_dead = (MarkSweepAlwaysCompactCount < 1)
7663e46f3a54 7110718: -XX:MarkSweepAlwaysCompactCount=0 crashes the JVM
brutisso
parents: 7397
diff changeset
    92
    || ((PSMarkSweep::total_invocations() % MarkSweepAlwaysCompactCount) != 0);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
1557
13878a2edfef 6765804: GC "dead ratios" should be unsigned
jcoomes
parents: 1406
diff changeset
    94
  size_t allowed_deadspace = 0;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  if (skip_dead) {
1557
13878a2edfef 6765804: GC "dead ratios" should be unsigned
jcoomes
parents: 1406
diff changeset
    96
    const size_t ratio = allowed_dead_ratio();
13878a2edfef 6765804: GC "dead ratios" should be unsigned
jcoomes
parents: 1406
diff changeset
    97
    allowed_deadspace = space()->capacity_in_words() * ratio / 100;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
  // Fetch the current destination decorator
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  PSMarkSweepDecorator* dest = destination_decorator();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  ObjectStartArray* start_array = dest->start_array();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  HeapWord* compact_top = dest->compaction_top();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  HeapWord* compact_end = dest->space()->end();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  HeapWord* q = space()->bottom();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
  HeapWord* t = space()->top();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  HeapWord*  end_of_live= q;    /* One byte beyond the last byte of the last
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
                                   live object. */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
  HeapWord*  first_dead = space()->end(); /* The first dead object. */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
  LiveRange* liveRange  = NULL; /* The current live range, recorded in the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
                                   first header of preceding free area. */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  _first_dead = first_dead;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  const intx interval = PrefetchScanIntervalInBytes;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
  while (q < t) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
    assert(oop(q)->mark()->is_marked() || oop(q)->mark()->is_unlocked() ||
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
           oop(q)->mark()->has_bias_pattern(),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
           "these are the only valid states during a mark sweep");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
    if (oop(q)->is_gc_marked()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
      /* prefetch beyond q */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
      Prefetch::write(q, interval);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
      size_t size = oop(q)->size();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
      size_t compaction_max_size = pointer_delta(compact_end, compact_top);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
      // This should only happen if a space in the young gen overflows the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
      // old gen. If that should happen, we null out the start_array, because
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
      // the young spaces are not covered by one.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
      while(size > compaction_max_size) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
        // First record the last compact_top
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
        dest->set_compaction_top(compact_top);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
        // Advance to the next compaction decorator
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
        advance_destination_decorator();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
        dest = destination_decorator();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
        // Update compaction info
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
        start_array = dest->start_array();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
        compact_top = dest->compaction_top();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
        compact_end = dest->space()->end();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
        assert(compact_top == dest->space()->bottom(), "Advanced to space already in use");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
        assert(compact_end > compact_top, "Must always be space remaining");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
        compaction_max_size =
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
          pointer_delta(compact_end, compact_top);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
      // store the forwarding pointer into the mark word
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
      if (q != compact_top) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
        oop(q)->forward_to(oop(compact_top));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
        assert(oop(q)->is_gc_marked(), "encoding the pointer should preserve the mark");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
      } else {
1406
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   156
        // if the object isn't moving we can just set the mark to the default
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   157
        // mark and handle it specially later on.
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   158
        oop(q)->init_mark();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
        assert(oop(q)->forwardee() == NULL, "should be forwarded to NULL");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
      // Update object start array
1406
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   163
      if (start_array) {
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   164
        start_array->allocate_block(compact_top);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   167
      VALIDATE_MARK_SWEEP_ONLY(MarkSweep::register_live_oop(oop(q), size));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
      compact_top += size;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
      assert(compact_top <= dest->space()->end(),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
        "Exceeding space in destination");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
      q += size;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
      end_of_live = q;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
    } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
      /* run over all the contiguous dead objects */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
      HeapWord* end = q;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
      do {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
        /* prefetch beyond end */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
        Prefetch::write(end, interval);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
        end += oop(end)->size();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
      } while (end < t && (!oop(end)->is_gc_marked()));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
      /* see if we might want to pretend this object is alive so that
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
       * we don't have to compact quite as often.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
       */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
      if (allowed_deadspace > 0 && q == compact_top) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
        size_t sz = pointer_delta(end, q);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
        if (insert_deadspace(allowed_deadspace, q, sz)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
          size_t compaction_max_size = pointer_delta(compact_end, compact_top);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
          // This should only happen if a space in the young gen overflows the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
          // old gen. If that should happen, we null out the start_array, because
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
          // the young spaces are not covered by one.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
          while (sz > compaction_max_size) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
            // First record the last compact_top
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
            dest->set_compaction_top(compact_top);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
            // Advance to the next compaction decorator
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
            advance_destination_decorator();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
            dest = destination_decorator();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
            // Update compaction info
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
            start_array = dest->start_array();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
            compact_top = dest->compaction_top();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
            compact_end = dest->space()->end();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
            assert(compact_top == dest->space()->bottom(), "Advanced to space already in use");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
            assert(compact_end > compact_top, "Must always be space remaining");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
            compaction_max_size =
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
              pointer_delta(compact_end, compact_top);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
          }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
          // store the forwarding pointer into the mark word
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
          if (q != compact_top) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
            oop(q)->forward_to(oop(compact_top));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
            assert(oop(q)->is_gc_marked(), "encoding the pointer should preserve the mark");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
          } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
            // if the object isn't moving we can just set the mark to the default
1406
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   218
            // mark and handle it specially later on.
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   219
            oop(q)->init_mark();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
            assert(oop(q)->forwardee() == NULL, "should be forwarded to NULL");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
          }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
1406
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   223
          // Update object start array
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   224
          if (start_array) {
e5e2b519fc11 6716466: par compact - remove VerifyParallelOldWithMarkSweep code
jcoomes
parents: 977
diff changeset
   225
            start_array->allocate_block(compact_top);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
          }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   228
          VALIDATE_MARK_SWEEP_ONLY(MarkSweep::register_live_oop(oop(q), sz));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
          compact_top += sz;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
          assert(compact_top <= dest->space()->end(),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
            "Exceeding space in destination");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
          q = end;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
          end_of_live = end;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
          continue;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
      /* for the previous LiveRange, record the end of the live objects. */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
      if (liveRange) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
        liveRange->set_end(q);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
      /* record the current LiveRange object.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   245
       * liveRange->start() is overlaid on the mark word.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
       */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
      liveRange = (LiveRange*)q;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
      liveRange->set_start(end);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
      liveRange->set_end(end);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
      /* see if this is the first dead region. */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
      if (q < first_dead) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
        first_dead = q;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
      /* move on to the next object */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
      q = end;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
  assert(q == t, "just checking");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
  if (liveRange != NULL) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
    liveRange->set_end(q);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
  _end_of_live = end_of_live;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
  if (end_of_live < first_dead) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
    first_dead = end_of_live;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
  _first_dead = first_dead;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
  // Update compaction top
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
  dest->set_compaction_top(compact_top);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
1557
13878a2edfef 6765804: GC "dead ratios" should be unsigned
jcoomes
parents: 1406
diff changeset
   275
bool PSMarkSweepDecorator::insert_deadspace(size_t& allowed_deadspace_words,
13878a2edfef 6765804: GC "dead ratios" should be unsigned
jcoomes
parents: 1406
diff changeset
   276
                                            HeapWord* q, size_t deadlength) {
13878a2edfef 6765804: GC "dead ratios" should be unsigned
jcoomes
parents: 1406
diff changeset
   277
  if (allowed_deadspace_words >= deadlength) {
13878a2edfef 6765804: GC "dead ratios" should be unsigned
jcoomes
parents: 1406
diff changeset
   278
    allowed_deadspace_words -= deadlength;
1668
8ec481b8f514 6578152: fill_region_with_object has usability and safety issues
jcoomes
parents: 1557
diff changeset
   279
    CollectedHeap::fill_with_object(q, deadlength);
8ec481b8f514 6578152: fill_region_with_object has usability and safety issues
jcoomes
parents: 1557
diff changeset
   280
    oop(q)->set_mark(oop(q)->mark()->set_marked());
8ec481b8f514 6578152: fill_region_with_object has usability and safety issues
jcoomes
parents: 1557
diff changeset
   281
    assert((int) deadlength == oop(q)->size(), "bad filler object size");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
    // Recall that we required "q == compaction_top".
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
    return true;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   284
  } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   285
    allowed_deadspace_words = 0;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
    return false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   287
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   288
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   289
489c9b5090e2 Initial load
duke
parents:
diff changeset
   290
void PSMarkSweepDecorator::adjust_pointers() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   291
  // adjust all the interior pointers to point at the new locations of objects
489c9b5090e2 Initial load
duke
parents:
diff changeset
   292
  // Used by MarkSweep::mark_sweep_phase3()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   293
489c9b5090e2 Initial load
duke
parents:
diff changeset
   294
  HeapWord* q = space()->bottom();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   295
  HeapWord* t = _end_of_live;  // Established by "prepare_for_compaction".
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
  assert(_first_dead <= _end_of_live, "Stands to reason, no?");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
  if (q < t && _first_dead > q &&
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
      !oop(q)->is_gc_marked()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
    // we have a chunk of the space which hasn't moved and we've
489c9b5090e2 Initial load
duke
parents:
diff changeset
   302
    // reinitialized the mark word during the previous pass, so we can't
489c9b5090e2 Initial load
duke
parents:
diff changeset
   303
    // use is_gc_marked for the traversal.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   304
    HeapWord* end = _first_dead;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   305
489c9b5090e2 Initial load
duke
parents:
diff changeset
   306
    while (q < end) {
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   307
      VALIDATE_MARK_SWEEP_ONLY(MarkSweep::track_interior_pointers(oop(q)));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
      // point all the oops to the new location
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
      size_t size = oop(q)->adjust_pointers();
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   310
      VALIDATE_MARK_SWEEP_ONLY(MarkSweep::check_interior_pointers());
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   311
      VALIDATE_MARK_SWEEP_ONLY(MarkSweep::validate_live_oop(oop(q), size));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
      q += size;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
    if (_first_dead == t) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   316
      q = t;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
    } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
      // $$$ This is funky.  Using this to read the previously written
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
      // LiveRange.  See also use below.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
      q = (HeapWord*)oop(_first_dead)->mark()->decode_pointer();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
  const intx interval = PrefetchScanIntervalInBytes;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
  debug_only(HeapWord* prev_q = NULL);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
  while (q < t) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
    // prefetch beyond q
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
    Prefetch::write(q, interval);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
    if (oop(q)->is_gc_marked()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
      // q is alive
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   331
      VALIDATE_MARK_SWEEP_ONLY(MarkSweep::track_interior_pointers(oop(q)));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
      // point all the oops to the new location
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
      size_t size = oop(q)->adjust_pointers();
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   334
      VALIDATE_MARK_SWEEP_ONLY(MarkSweep::check_interior_pointers());
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   335
      VALIDATE_MARK_SWEEP_ONLY(MarkSweep::validate_live_oop(oop(q), size));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
      debug_only(prev_q = q);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   337
      q += size;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
    } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
      // q is not a live object, so its mark should point at the next
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
      // live object
489c9b5090e2 Initial load
duke
parents:
diff changeset
   341
      debug_only(prev_q = q);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
      q = (HeapWord*) oop(q)->mark()->decode_pointer();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   343
      assert(q > prev_q, "we should be moving forward through memory");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   344
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   346
489c9b5090e2 Initial load
duke
parents:
diff changeset
   347
  assert(q == t, "just checking");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   348
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
489c9b5090e2 Initial load
duke
parents:
diff changeset
   350
void PSMarkSweepDecorator::compact(bool mangle_free_space ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
  // Copy all live objects to their new location
489c9b5090e2 Initial load
duke
parents:
diff changeset
   352
  // Used by MarkSweep::mark_sweep_phase4()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
489c9b5090e2 Initial load
duke
parents:
diff changeset
   354
  HeapWord*       q = space()->bottom();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
  HeapWord* const t = _end_of_live;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   356
  debug_only(HeapWord* prev_q = NULL);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   357
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
  if (q < t && _first_dead > q &&
489c9b5090e2 Initial load
duke
parents:
diff changeset
   359
      !oop(q)->is_gc_marked()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   360
#ifdef ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
    // we have a chunk of the space which hasn't moved and we've reinitialized the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
    // mark word during the previous pass, so we can't use is_gc_marked for the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
    // traversal.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   364
    HeapWord* const end = _first_dead;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   365
489c9b5090e2 Initial load
duke
parents:
diff changeset
   366
    while (q < end) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   367
      size_t size = oop(q)->size();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   368
      assert(!oop(q)->is_gc_marked(), "should be unmarked (special dense prefix handling)");
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   369
      VALIDATE_MARK_SWEEP_ONLY(MarkSweep::live_oop_moved_to(q, size, q));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   370
      debug_only(prev_q = q);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
      q += size;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   372
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   374
489c9b5090e2 Initial load
duke
parents:
diff changeset
   375
    if (_first_dead == t) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   376
      q = t;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   377
    } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   378
      // $$$ Funky
489c9b5090e2 Initial load
duke
parents:
diff changeset
   379
      q = (HeapWord*) oop(_first_dead)->mark()->decode_pointer();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   380
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   381
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   382
489c9b5090e2 Initial load
duke
parents:
diff changeset
   383
  const intx scan_interval = PrefetchScanIntervalInBytes;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   384
  const intx copy_interval = PrefetchCopyIntervalInBytes;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   385
489c9b5090e2 Initial load
duke
parents:
diff changeset
   386
  while (q < t) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   387
    if (!oop(q)->is_gc_marked()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   388
      // mark is pointer to next marked oop
489c9b5090e2 Initial load
duke
parents:
diff changeset
   389
      debug_only(prev_q = q);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   390
      q = (HeapWord*) oop(q)->mark()->decode_pointer();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   391
      assert(q > prev_q, "we should be moving forward through memory");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   392
    } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   393
      // prefetch beyond q
489c9b5090e2 Initial load
duke
parents:
diff changeset
   394
      Prefetch::read(q, scan_interval);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   395
489c9b5090e2 Initial load
duke
parents:
diff changeset
   396
      // size and destination
489c9b5090e2 Initial load
duke
parents:
diff changeset
   397
      size_t size = oop(q)->size();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   398
      HeapWord* compaction_top = (HeapWord*)oop(q)->forwardee();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   399
489c9b5090e2 Initial load
duke
parents:
diff changeset
   400
      // prefetch beyond compaction_top
489c9b5090e2 Initial load
duke
parents:
diff changeset
   401
      Prefetch::write(compaction_top, copy_interval);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   402
489c9b5090e2 Initial load
duke
parents:
diff changeset
   403
      // copy object and reinit its mark
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   404
      VALIDATE_MARK_SWEEP_ONLY(MarkSweep::live_oop_moved_to(q, size, compaction_top));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   405
      assert(q != compaction_top, "everything in this pass should be moving");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   406
      Copy::aligned_conjoint_words(q, compaction_top, size);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   407
      oop(compaction_top)->init_mark();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   408
      assert(oop(compaction_top)->klass() != NULL, "should have a class");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   409
489c9b5090e2 Initial load
duke
parents:
diff changeset
   410
      debug_only(prev_q = q);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   411
      q += size;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   412
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   413
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   414
489c9b5090e2 Initial load
duke
parents:
diff changeset
   415
  assert(compaction_top() >= space()->bottom() && compaction_top() <= space()->end(),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   416
         "should point inside space");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   417
  space()->set_top(compaction_top());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   418
971
f0b20be4165d 6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents: 360
diff changeset
   419
  if (mangle_free_space) {
f0b20be4165d 6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents: 360
diff changeset
   420
    space()->mangle_unused_area();
f0b20be4165d 6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents: 360
diff changeset
   421
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   422
}