1 /*
2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSTASKS_HPP
26 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSTASKS_HPP
27
28 #include "memory/allocation.hpp"
29 #include "utilities/growableArray.hpp"
30
31 //
32 // psTasks.hpp is a collection of GCTasks used by the
33 // parallelScavenge collector.
34 //
35
36 class GCTask;
37 class OopClosure;
38 class OopStack;
39 class ObjectStartArray;
40 class ParallelTaskTerminator;
41 class MutableSpace;
42 class PSOldGen;
43 class Thread;
44 class VMThread;
45
46 //
163 PSOldGen* _gen;
164 HeapWord* _gen_top;
165 uint _stripe_number;
166 uint _stripe_total;
167
168 public:
169 OldToYoungRootsTask(PSOldGen *gen,
170 HeapWord* gen_top,
171 uint stripe_number,
172 uint stripe_total) :
173 _gen(gen),
174 _gen_top(gen_top),
175 _stripe_number(stripe_number),
176 _stripe_total(stripe_total) { }
177
178 char* name() { return (char *)"old-to-young-roots-task"; }
179
180 virtual void do_it(GCTaskManager* manager, uint which);
181 };
182
183 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSTASKS_HPP
|
1 /*
2 * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_PARALLEL_PSTASKS_HPP
26 #define SHARE_VM_GC_PARALLEL_PSTASKS_HPP
27
28 #include "memory/allocation.hpp"
29 #include "utilities/growableArray.hpp"
30
31 //
32 // psTasks.hpp is a collection of GCTasks used by the
33 // parallelScavenge collector.
34 //
35
36 class GCTask;
37 class OopClosure;
38 class OopStack;
39 class ObjectStartArray;
40 class ParallelTaskTerminator;
41 class MutableSpace;
42 class PSOldGen;
43 class Thread;
44 class VMThread;
45
46 //
163 PSOldGen* _gen;
164 HeapWord* _gen_top;
165 uint _stripe_number;
166 uint _stripe_total;
167
168 public:
169 OldToYoungRootsTask(PSOldGen *gen,
170 HeapWord* gen_top,
171 uint stripe_number,
172 uint stripe_total) :
173 _gen(gen),
174 _gen_top(gen_top),
175 _stripe_number(stripe_number),
176 _stripe_total(stripe_total) { }
177
178 char* name() { return (char *)"old-to-young-roots-task"; }
179
180 virtual void do_it(GCTaskManager* manager, uint which);
181 };
182
183 #endif // SHARE_VM_GC_PARALLEL_PSTASKS_HPP
|