comparison src/share/vm/gc_implementation/parallelScavenge/pcTasks.hpp @ 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) 2005, 2008, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 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.
240 // if thread A gets all the preloaded regions, thread A may not get a draining 240 // if thread A gets all the preloaded regions, thread A may not get a draining
241 // task (they may all be done by other threads). 241 // task (they may all be done by other threads).
242 // 242 //
243 243
244 class DrainStacksCompactionTask : public GCTask { 244 class DrainStacksCompactionTask : public GCTask {
245 public: 245 uint _stack_index;
246 uint stack_index() { return _stack_index; }
247 public:
248 DrainStacksCompactionTask(uint stack_index) : GCTask(),
249 _stack_index(stack_index) {};
246 char* name() { return (char *)"drain-region-task"; } 250 char* name() { return (char *)"drain-region-task"; }
247 virtual void do_it(GCTaskManager* manager, uint which); 251 virtual void do_it(GCTaskManager* manager, uint which);
248 }; 252 };