mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8150994: UseParallelGC fails with UseDynamicNumberOfGCThreads with specjbb2005
Reviewed-by: tschatzl, kbarrett
This commit is contained in:
parent
56d3ee3dbc
commit
d650ab04e2
6 changed files with 16 additions and 213 deletions
|
@ -234,27 +234,4 @@ class UpdateDensePrefixTask : public GCTask {
|
|||
|
||||
virtual void do_it(GCTaskManager* manager, uint which);
|
||||
};
|
||||
|
||||
//
|
||||
// DrainStacksCompactionTask
|
||||
//
|
||||
// This task processes regions that have been added to the stacks of each
|
||||
// compaction manager.
|
||||
//
|
||||
// Trying to use one draining thread does not work because there are no
|
||||
// guarantees about which task will be picked up by which thread. For example,
|
||||
// if thread A gets all the preloaded regions, thread A may not get a draining
|
||||
// task (they may all be done by other threads).
|
||||
//
|
||||
|
||||
class DrainStacksCompactionTask : public GCTask {
|
||||
uint _stack_index;
|
||||
uint stack_index() { return _stack_index; }
|
||||
public:
|
||||
DrainStacksCompactionTask(uint stack_index) : GCTask(),
|
||||
_stack_index(stack_index) {};
|
||||
char* name() { return (char *)"drain-region-task"; }
|
||||
virtual void do_it(GCTaskManager* manager, uint which);
|
||||
};
|
||||
|
||||
#endif // SHARE_VM_GC_PARALLEL_PCTASKS_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue