From ee1b91d3f01a134a2cfc726885f8dd5bc5a59b63 Mon Sep 17 00:00:00 2001 From: Lois Foltan Date: Tue, 6 May 2014 08:59:57 -0400 Subject: [PATCH] 8041627: Solaris Studio 12.4 C++ 5.13 compilation error due to lack of "surplus" prototype for binaryTreeDictionary.cpp Fix C++ compilation error diagnostic for the call of "surplus" within get_better_list() method. Reviewed-by: coleenp, dholmes --- hotspot/src/share/vm/memory/binaryTreeDictionary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp b/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp index e975324ad40..ac716bb01e2 100644 --- a/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp +++ b/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp @@ -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 @@ TreeList >::get_better_list( // chunk. TreeList >* curTL = this; - if (surplus() <= 0) { + if (curTL->surplus() <= 0) { /* Use the hint to find a size with a surplus, and reset the hint. */ TreeList >* hintTL = this; while (hintTL->hint() != 0) {