@@ -563,9 +563,9 @@ class ZMarkTimeout : public StackObj {
563
563
bool _expired;
564
564
565
565
public:
566
- ZMarkTimeout (uint64_t timeout_in_millis ) :
566
+ ZMarkTimeout (uint64_t timeout_in_micros ) :
567
567
_start (Ticks::now()),
568
- _timeout (_start.value() + TimeHelper::millis_to_counter(timeout_in_millis )),
568
+ _timeout (_start.value() + TimeHelper::micros_to_counter(timeout_in_micros )),
569
569
_check_interval (200 ),
570
570
_check_at(_check_interval),
571
571
_check_count(0 ),
@@ -591,9 +591,9 @@ class ZMarkTimeout : public StackObj {
591
591
}
592
592
};
593
593
594
- void ZMark::work_with_timeout (ZMarkCache* cache, ZMarkStripe* stripe, ZMarkThreadLocalStacks* stacks, uint64_t timeout_in_millis ) {
594
+ void ZMark::work_with_timeout (ZMarkCache* cache, ZMarkStripe* stripe, ZMarkThreadLocalStacks* stacks, uint64_t timeout_in_micros ) {
595
595
ZStatTimer timer (ZSubPhaseMarkTryComplete);
596
- ZMarkTimeout timeout (timeout_in_millis );
596
+ ZMarkTimeout timeout (timeout_in_micros );
597
597
598
598
for (;;) {
599
599
if (!drain_and_flush (stripe, stacks, cache, &timeout)) {
@@ -611,15 +611,15 @@ void ZMark::work_with_timeout(ZMarkCache* cache, ZMarkStripe* stripe, ZMarkThrea
611
611
}
612
612
}
613
613
614
- void ZMark::work (uint64_t timeout_in_millis ) {
614
+ void ZMark::work (uint64_t timeout_in_micros ) {
615
615
ZMarkCache cache (_stripes.nstripes ());
616
616
ZMarkStripe* const stripe = _stripes.stripe_for_worker (_nworkers, ZThread::worker_id ());
617
617
ZMarkThreadLocalStacks* const stacks = ZThreadLocalData::stacks (Thread::current ());
618
618
619
- if (timeout_in_millis == 0 ) {
619
+ if (timeout_in_micros == 0 ) {
620
620
work_without_timeout (&cache, stripe, stacks);
621
621
} else {
622
- work_with_timeout (&cache, stripe, stacks, timeout_in_millis );
622
+ work_with_timeout (&cache, stripe, stacks, timeout_in_micros );
623
623
}
624
624
625
625
// Make sure stacks have been flushed
@@ -668,13 +668,13 @@ class ZMarkConcurrentRootsTask : public ZTask {
668
668
class ZMarkTask : public ZTask {
669
669
private:
670
670
ZMark* const _mark;
671
- const uint64_t _timeout_in_millis ;
671
+ const uint64_t _timeout_in_micros ;
672
672
673
673
public:
674
- ZMarkTask (ZMark* mark, uint64_t timeout_in_millis = 0 ) :
674
+ ZMarkTask (ZMark* mark, uint64_t timeout_in_micros = 0 ) :
675
675
ZTask (" ZMarkTask" ),
676
676
_mark (mark),
677
- _timeout_in_millis (timeout_in_millis ) {
677
+ _timeout_in_micros (timeout_in_micros ) {
678
678
_mark->prepare_work ();
679
679
}
680
680
@@ -683,7 +683,7 @@ class ZMarkTask : public ZTask {
683
683
}
684
684
685
685
virtual void work () {
686
- _mark->work (_timeout_in_millis );
686
+ _mark->work (_timeout_in_micros );
687
687
}
688
688
};
689
689
0 commit comments