Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parNew/parCardTableModRefBS.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 | c18cbe5936b8 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1781:97fbf5beff7b | 1833:8b10f48633dc |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2007, 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. |
42 lowest_non_clean_base_chunk_index, | 42 lowest_non_clean_base_chunk_index, |
43 lowest_non_clean_chunk_size); | 43 lowest_non_clean_chunk_size); |
44 | 44 |
45 int n_strides = n_threads * StridesPerThread; | 45 int n_strides = n_threads * StridesPerThread; |
46 SequentialSubTasksDone* pst = sp->par_seq_tasks(); | 46 SequentialSubTasksDone* pst = sp->par_seq_tasks(); |
47 pst->set_par_threads(n_threads); | 47 pst->set_n_threads(n_threads); |
48 pst->set_n_tasks(n_strides); | 48 pst->set_n_tasks(n_strides); |
49 | 49 |
50 int stride = 0; | 50 int stride = 0; |
51 while (!pst->is_task_claimed(/* reference */ stride)) { | 51 while (!pst->is_task_claimed(/* reference */ stride)) { |
52 process_stride(sp, mr, stride, n_strides, dcto_cl, cl, clear, | 52 process_stride(sp, mr, stride, n_strides, dcto_cl, cl, clear, |