hotspot/src/share/vm/memory/threadLocalAllocBuffer.cpp
changeset 7724 a92d706dbdd5
parent 7397 5b173b4ca846
child 10565 dc90c239f4ec
--- a/hotspot/src/share/vm/memory/threadLocalAllocBuffer.cpp	Fri Jan 07 03:38:19 2011 -0800
+++ b/hotspot/src/share/vm/memory/threadLocalAllocBuffer.cpp	Fri Jan 07 10:42:32 2011 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -114,6 +114,11 @@
 void ThreadLocalAllocBuffer::make_parsable(bool retire) {
   if (end() != NULL) {
     invariants();
+
+    if (retire) {
+      myThread()->incr_allocated_bytes(used_bytes());
+    }
+
     CollectedHeap::fill_with_object(top(), hard_end(), retire);
 
     if (retire || ZeroTLAB) {  // "Reset" the TLAB