src/share/vm/memory/blockOffsetTable.inline.hpp

changeset 2071
be3f9c242c9d
parent 1907
c18cbe5936b8
child 2314
f95d63e2154a
     1.1 --- a/src/share/vm/memory/blockOffsetTable.inline.hpp	Sat Aug 14 00:47:52 2010 -0700
     1.2 +++ b/src/share/vm/memory/blockOffsetTable.inline.hpp	Mon Aug 16 15:58:42 2010 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2000, 2002, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2000, 2010, 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 @@ -55,10 +55,22 @@
    1.11    return result;
    1.12  }
    1.13  
    1.14 +inline void BlockOffsetSharedArray::check_reducing_assertion(bool reducing) {
    1.15 +    assert(reducing || !SafepointSynchronize::is_at_safepoint() || init_to_zero() ||
    1.16 +           Thread::current()->is_VM_thread() ||
    1.17 +           Thread::current()->is_ConcurrentGC_thread() ||
    1.18 +           ((!Thread::current()->is_ConcurrentGC_thread()) &&
    1.19 +            ParGCRareEvent_lock->owned_by_self()), "Crack");
    1.20 +}
    1.21  
    1.22  //////////////////////////////////////////////////////////////////////////
    1.23  // BlockOffsetArrayNonContigSpace inlines
    1.24  //////////////////////////////////////////////////////////////////////////
    1.25 +inline void BlockOffsetArrayNonContigSpace::freed(HeapWord* blk,
    1.26 +                                                  size_t size) {
    1.27 +  freed(blk, blk + size);
    1.28 +}
    1.29 +
    1.30  inline void BlockOffsetArrayNonContigSpace::freed(HeapWord* blk_start,
    1.31                                                    HeapWord* blk_end) {
    1.32    // Verify that the BOT shows [blk_start, blk_end) to be one block.

mercurial