< prev index next >

src/share/vm/utilities/workgroup.hpp

Print this page
rev 8068 : 6407976: GC worker number should be unsigned
Reviewed-by: jwilhelm

*** 1,7 **** /* ! * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 62,72 **** // This method configures the task for proper termination. // Some tasks do not have any requirements on termination // and may inherit this method that does nothing. Some // tasks do some coordination on termination and override // this method to implement that coordination. ! virtual void set_for_termination(int active_workers) {}; // Debugging accessor for the name. const char* name() const PRODUCT_RETURN_(return NULL;); int counter() { return _counter; } void set_counter(int value) { _counter = value; } --- 62,72 ---- // This method configures the task for proper termination. // Some tasks do not have any requirements on termination // and may inherit this method that does nothing. Some // tasks do some coordination on termination and override // this method to implement that coordination. ! virtual void set_for_termination(uint active_workers) {}; // Debugging accessor for the name. const char* name() const PRODUCT_RETURN_(return NULL;); int counter() { return _counter; } void set_counter(int value) { _counter = value; }
*** 100,110 **** ParallelTaskTerminator _terminator; public: AbstractGangTaskWOopQueues(const char* name, OopTaskQueueSet* queues) : AbstractGangTask(name), _queues(queues), _terminator(0, _queues) {} ParallelTaskTerminator* terminator() { return &_terminator; } ! virtual void set_for_termination(int active_workers) { terminator()->reset_for_reuse(active_workers); } OopTaskQueueSet* queues() { return _queues; } }; --- 100,110 ---- ParallelTaskTerminator _terminator; public: AbstractGangTaskWOopQueues(const char* name, OopTaskQueueSet* queues) : AbstractGangTask(name), _queues(queues), _terminator(0, _queues) {} ParallelTaskTerminator* terminator() { return &_terminator; } ! virtual void set_for_termination(uint active_workers) { terminator()->reset_for_reuse(active_workers); } OopTaskQueueSet* queues() { return _queues; } };
< prev index next >