mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 05:59:52 +00:00
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
This commit is contained in:
parent
7e2463ea72
commit
ee1b91d3f0
@ -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<FreeChunk, AdaptiveFreeList<FreeChunk> >::get_better_list(
|
||||
// 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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user