1 /* |
1 /* |
2 * Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2010, 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. |
32 |
32 |
33 size_t CollectedHeap::_filler_array_max_size = 0; |
33 size_t CollectedHeap::_filler_array_max_size = 0; |
34 |
34 |
35 // Memory state functions. |
35 // Memory state functions. |
36 |
36 |
37 CollectedHeap::CollectedHeap() |
37 |
|
38 CollectedHeap::CollectedHeap() : _n_par_threads(0) |
|
39 |
38 { |
40 { |
39 const size_t max_len = size_t(arrayOopDesc::max_array_length(T_INT)); |
41 const size_t max_len = size_t(arrayOopDesc::max_array_length(T_INT)); |
40 const size_t elements_per_word = HeapWordSize / sizeof(jint); |
42 const size_t elements_per_word = HeapWordSize / sizeof(jint); |
41 _filler_array_max_size = align_object_size(filler_array_hdr_size() + |
43 _filler_array_max_size = align_object_size(filler_array_hdr_size() + |
42 max_len * elements_per_word); |
44 max_len * elements_per_word); |