1.1 --- a/src/share/vm/memory/threadLocalAllocBuffer.hpp Fri Jan 07 03:38:19 2011 -0800 1.2 +++ b/src/share/vm/memory/threadLocalAllocBuffer.hpp Fri Jan 07 10:42:32 2011 -0500 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1999, 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 @@ -112,6 +112,8 @@ 1.11 HeapWord* top() const { return _top; } 1.12 HeapWord* pf_top() const { return _pf_top; } 1.13 size_t desired_size() const { return _desired_size; } 1.14 + size_t used() const { return pointer_delta(top(), start()); } 1.15 + size_t used_bytes() const { return pointer_delta(top(), start(), 1); } 1.16 size_t free() const { return pointer_delta(end(), top()); } 1.17 // Don't discard tlab if remaining space is larger than this. 1.18 size_t refill_waste_limit() const { return _refill_waste_limit; }