8190711: Assert in G1MMUTracker due to concurrent modification
Reviewed-by: tschatzl, rehn, sangheki
This commit is contained in:
parent
02b4fc7985
commit
09c2ca5809
@ -112,18 +112,7 @@ void G1MMUTrackerQueue::add_pause(double start, double end) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// basically the _internal call does not remove expired entries
|
|
||||||
// this is for trying things out in the future and a couple
|
|
||||||
// of other places (debugging)
|
|
||||||
|
|
||||||
double G1MMUTrackerQueue::when_sec(double current_time, double pause_time) {
|
double G1MMUTrackerQueue::when_sec(double current_time, double pause_time) {
|
||||||
remove_expired_entries(current_time);
|
|
||||||
|
|
||||||
return when_internal(current_time, pause_time);
|
|
||||||
}
|
|
||||||
|
|
||||||
double G1MMUTrackerQueue::when_internal(double current_time,
|
|
||||||
double pause_time) {
|
|
||||||
// if the pause is over the maximum, just assume that it's the maximum
|
// if the pause is over the maximum, just assume that it's the maximum
|
||||||
double adjusted_pause_time =
|
double adjusted_pause_time =
|
||||||
(pause_time > max_gc_time()) ? max_gc_time() : pause_time;
|
(pause_time > max_gc_time()) ? max_gc_time() : pause_time;
|
||||||
|
@ -134,8 +134,6 @@ private:
|
|||||||
void remove_expired_entries(double current_time);
|
void remove_expired_entries(double current_time);
|
||||||
double calculate_gc_time(double current_time);
|
double calculate_gc_time(double current_time);
|
||||||
|
|
||||||
double when_internal(double current_time, double pause_time);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
G1MMUTrackerQueue(double time_slice, double max_gc_time);
|
G1MMUTrackerQueue(double time_slice, double max_gc_time);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user