src/share/vm/memory/blockOffsetTable.cpp

changeset 2943
537a4053b0f9
parent 2891
7d64aa23eb96
child 3900
d2a62e0f25eb
     1.1 --- a/src/share/vm/memory/blockOffsetTable.cpp	Fri May 20 22:27:48 2011 -0700
     1.2 +++ b/src/share/vm/memory/blockOffsetTable.cpp	Mon May 23 16:42:14 2011 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2000, 2011, 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 @@ -566,11 +566,17 @@
    1.11      q = n;
    1.12      n += _sp->block_size(n);
    1.13      assert(n > q,
    1.14 -           err_msg("Looping at n = " PTR_FORMAT " with last = " PTR_FORMAT " _sp = [" PTR_FORMAT "," PTR_FORMAT ")",
    1.15 -                   n, last, _sp->bottom(), _sp->end()));
    1.16 +           err_msg("Looping at n = " PTR_FORMAT " with last = " PTR_FORMAT","
    1.17 +                   " while querying blk_start(" PTR_FORMAT ")"
    1.18 +                   " on _sp = [" PTR_FORMAT "," PTR_FORMAT ")",
    1.19 +                   n, last, addr, _sp->bottom(), _sp->end()));
    1.20    }
    1.21 -  assert(q <= addr, err_msg("wrong order for current (" INTPTR_FORMAT ") <= arg (" INTPTR_FORMAT ")", q, addr));
    1.22 -  assert(addr <= n, err_msg("wrong order for arg (" INTPTR_FORMAT ") <= next (" INTPTR_FORMAT ")", addr, n));
    1.23 +  assert(q <= addr,
    1.24 +         err_msg("wrong order for current (" INTPTR_FORMAT ")" " <= arg (" INTPTR_FORMAT ")",
    1.25 +                 q, addr));
    1.26 +  assert(addr <= n,
    1.27 +         err_msg("wrong order for arg (" INTPTR_FORMAT ") <= next (" INTPTR_FORMAT ")",
    1.28 +                 addr, n));
    1.29    return q;
    1.30  }
    1.31  

mercurial