Mercurial > hg > graal-compiler
comparison src/share/vm/gc_interface/collectedHeap.cpp @ 1833:8b10f48633dc
6984287: Regularize how GC parallel workers are specified.
Summary: Associate number of GC workers with the workgang as opposed to the task.
Reviewed-by: johnc, ysr
author | jmasa |
---|---|
date | Mon, 20 Sep 2010 14:38:38 -0700 |
parents | e9ff18c4ace7 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1781:97fbf5beff7b | 1833:8b10f48633dc |
---|---|
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); |