1.1 --- a/src/share/vm/memory/threadLocalAllocBuffer.cpp Fri Jan 07 03:38:19 2011 -0800 1.2 +++ b/src/share/vm/memory/threadLocalAllocBuffer.cpp 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 @@ -114,6 +114,11 @@ 1.11 void ThreadLocalAllocBuffer::make_parsable(bool retire) { 1.12 if (end() != NULL) { 1.13 invariants(); 1.14 + 1.15 + if (retire) { 1.16 + myThread()->incr_allocated_bytes(used_bytes()); 1.17 + } 1.18 + 1.19 CollectedHeap::fill_with_object(top(), hard_end(), retire); 1.20 1.21 if (retire || ZeroTLAB) { // "Reset" the TLAB