Skip to content

fix panic if the GOOS doesn't support strict IEEE #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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