comparison src/share/vm/memory/binaryTreeDictionary.hpp @ 13274:c044f8d03932

8182299: Enable disabled clang warnings, build on OSX 10 + Xcode 8 8182656: Make the required changes in GC code to build on OSX 10 + Xcode 8 8182657: Make the required changes in Runtime code to build on OSX 10 + Xcode 8 8182658: Make the required changes in Compiler code to build on OSX 10 + Xcode 8 Reviewed-by: jwilhelm, ehelin, phh Contributed-by: phh <hohensee@amazon.com>, jwilhelm <jesper.wilhelmsson@oracle.com>
author jwilhelm
date Thu, 06 Jul 2017 01:50:26 +0200
parents f944761a3ce3
children bf5bc73cff1b
comparison
equal deleted inserted replaced
10:0ec30d03670f 11:c1f7d34ce61b
1 /* 1 /*
2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
161 161
162 Chunk_t* next() const { return Chunk_t::next(); } 162 Chunk_t* next() const { return Chunk_t::next(); }
163 Chunk_t* prev() const { return Chunk_t::prev(); } 163 Chunk_t* prev() const { return Chunk_t::prev(); }
164 size_t size() const volatile { return Chunk_t::size(); } 164 size_t size() const volatile { return Chunk_t::size(); }
165 165
166 static size_t min_size() { 166 static size_t min_size();
167 return _min_tree_chunk_size;
168 }
169 167
170 // debugging 168 // debugging
171 void verify_tree_chunk_list() const; 169 void verify_tree_chunk_list() const;
172 void assert_is_mangled() const; 170 void assert_is_mangled() const;
173 }; 171 };
174 172
173 template <class Chunk_t, class FreeList_t>
174 size_t TreeChunk<Chunk_t, FreeList_t>::_min_tree_chunk_size = sizeof(TreeChunk<Chunk_t, FreeList_t>)/HeapWordSize;
175 template <class Chunk_t, class FreeList_t>
176 size_t TreeChunk<Chunk_t, FreeList_t>::min_size() { return _min_tree_chunk_size; }
175 177
176 template <class Chunk_t, class FreeList_t> 178 template <class Chunk_t, class FreeList_t>
177 class BinaryTreeDictionary: public FreeBlockDictionary<Chunk_t> { 179 class BinaryTreeDictionary: public FreeBlockDictionary<Chunk_t> {
178 friend class VMStructs; 180 friend class VMStructs;
179 size_t _total_size; 181 size_t _total_size;