src/share/vm/memory/blockOffsetTable.cpp

changeset 4037
da91efe96a93
parent 3900
d2a62e0f25eb
child 4993
746b070f5022
     1.1 --- a/src/share/vm/memory/blockOffsetTable.cpp	Fri Aug 31 16:39:35 2012 -0700
     1.2 +++ b/src/share/vm/memory/blockOffsetTable.cpp	Sat Sep 01 13:25:18 2012 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -98,16 +98,6 @@
    1.11  }
    1.12  
    1.13  
    1.14 -void BlockOffsetSharedArray::serialize(SerializeOopClosure* soc,
    1.15 -                                       HeapWord* start, HeapWord* end) {
    1.16 -  assert(_offset_array[0] == 0, "objects can't cross covered areas");
    1.17 -  assert(start <= end, "bad address range");
    1.18 -  size_t start_index = index_for(start);
    1.19 -  size_t end_index = index_for(end-1)+1;
    1.20 -  soc->do_region(&_offset_array[start_index],
    1.21 -                 (end_index - start_index) * sizeof(_offset_array[0]));
    1.22 -}
    1.23 -
    1.24  //////////////////////////////////////////////////////////////////////
    1.25  // BlockOffsetArray
    1.26  //////////////////////////////////////////////////////////////////////
    1.27 @@ -801,17 +791,6 @@
    1.28    _array->set_offset_array(bottom_index, 0);
    1.29  }
    1.30  
    1.31 -
    1.32 -void BlockOffsetArrayContigSpace::serialize(SerializeOopClosure* soc) {
    1.33 -  if (soc->reading()) {
    1.34 -    // Null these values so that the serializer won't object to updating them.
    1.35 -    _next_offset_threshold = NULL;
    1.36 -    _next_offset_index = 0;
    1.37 -  }
    1.38 -  soc->do_ptr(&_next_offset_threshold);
    1.39 -  soc->do_size_t(&_next_offset_index);
    1.40 -}
    1.41 -
    1.42  size_t BlockOffsetArrayContigSpace::last_active_index() const {
    1.43    size_t result = _next_offset_index - 1;
    1.44    return result >= 0 ? result : 0;

mercurial