hotspot/src/share/vm/memory/binaryTreeDictionary.cpp
changeset 24335 77c15794239b
parent 24092 e274d864545a
child 24424 2658d7834c6e
--- a/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp	Mon May 05 19:53:00 2014 -0400
+++ b/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp	Tue May 06 08:59:57 2014 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2014, 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
@@ -120,7 +120,7 @@
   // chunk.
 
   TreeList<FreeChunk, ::AdaptiveFreeList<FreeChunk> >* curTL = this;
-  if (surplus() <= 0) {
+  if (curTL->surplus() <= 0) {
     /* Use the hint to find a size with a surplus, and reset the hint. */
     TreeList<FreeChunk, ::AdaptiveFreeList<FreeChunk> >* hintTL = this;
     while (hintTL->hint() != 0) {