Skip to content

Conversation

@snyh
Copy link

@snyh snyh commented Mar 27, 2018

the default TimerGranularity is zero, and divide zero will cause SIGFPE if the code doesn't support strict IEEE.

This will be happen in gccgo under some special platform.

  panic: runtime error: floating point error
  [signal SIGFPE: floating-point exception code=7 addr=4859750620 pc=4859750621]

And check the zero will improve the default performances by removing the operations about time.Now.

snyh added 2 commits March 27, 2018 17:28
the default _TimerGranularity_ is zero, and divide zero will cause SIGFPE if the code doesn't support strict IEEE.
this will be happen in gccgo under some special platform.
      panic: runtime error: floating point error
      [signal SIGFPE: floating-point exception code=7 addr=4859750620 pc=4859750621]

And check the zero will improve the default performances by removing the operations about time.Now.
@hashicorp-cla
Copy link

hashicorp-cla commented Sep 30, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants