src/share/vm/memory/allocation.cpp

changeset 6217
849eb7bfceac
parent 5614
9758d9f36299
child 6305
40353abd7984
child 6503
a9becfeecd1b
     1.1 --- a/src/share/vm/memory/allocation.cpp	Wed Jan 08 12:05:19 2014 +0100
     1.2 +++ b/src/share/vm/memory/allocation.cpp	Wed Jan 08 10:25:50 2014 -0800
     1.3 @@ -140,7 +140,7 @@
     1.4  void ResourceObj::set_allocation_type(address res, allocation_type type) {
     1.5      // Set allocation type in the resource object
     1.6      uintptr_t allocation = (uintptr_t)res;
     1.7 -    assert((allocation & allocation_mask) == 0, "address should be aligned to 4 bytes at least");
     1.8 +    assert((allocation & allocation_mask) == 0, err_msg("address should be aligned to 4 bytes at least: " PTR_FORMAT, res));
     1.9      assert(type <= allocation_mask, "incorrect allocation type");
    1.10      ResourceObj* resobj = (ResourceObj *)res;
    1.11      resobj->_allocation_t[0] = ~(allocation + type);

mercurial