equal
deleted
inserted
replaced
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 }; |