RFR(M): 8028474: sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.sh timeout, leaves looping process behind
David Holmes
david.holmes at oracle.com
Wed Jul 2 10:48:02 UTC 2014
On 1/07/2014 10:35 PM, roger riggs wrote:
> Hi Erik,
>
> Consider switching to System.nanoTime; it is not sensitive to clock changes
Not completely true unfortunately. The change to use CLOCK_MONOTONIC_RAW
will make it true (OS bugs not withstanding).
But I would suggest switching anyway.
David
> and avoids leaving a land mine that may cause a spurious non-repeatable
> test failure.
> 'Deducing it from the log' means there is a failure and creates probably
> an hour or two of work
> for some quality engineer and burns a couple of hours re-running the
> test run.
>
> Roger
>
>
>
> On 7/1/2014 3:37 AM, Erik Gahlin wrote:
>>
>>
>>> JavaProcess.waitForRemoval: How about using timestamps
>>> (currentTimeMillis()) before the loop and for each ite
>>> ration to determine if the timeout has expired (instead of "time+=100”)?
>>>
>> The code now uses currentTimeMillis(). Premature timeouts due to clock
>> changes can be deduced from the log.
>>
>
More information about the serviceability-dev
mailing list