mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8159073: : Error handling incomplete when creating GC threads lazily
Reviewed-by: drwhite, tschatzl, sangheki
This commit is contained in:
parent
a3cd491780
commit
d618ceab2e
12 changed files with 53 additions and 23 deletions
|
@ -457,11 +457,12 @@ protected:
|
|||
uint workers() const {
|
||||
return _workers;
|
||||
}
|
||||
void set_active_workers(uint v) {
|
||||
uint update_active_workers(uint v) {
|
||||
assert(v <= _workers, "Trying to set more workers active than there are");
|
||||
_active_workers = MIN2(v, _workers);
|
||||
assert(v != 0, "Trying to set active workers to 0");
|
||||
_active_workers = MAX2(1U, _active_workers);
|
||||
return _active_workers;
|
||||
}
|
||||
// Sets the number of threads that will be used in a collection
|
||||
void set_active_gang();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue