Project

General

Profile

Actions

Bug #10144

closed

[PATCH] time_timespec: fix tv_nsec overflow on float conversion

Added by normalperson (Eric Wong) over 10 years ago. Updated about 10 years ago.

Status:
Closed
Target version:
ruby -v:
trunk
[ruby-core:64407]

Description

test/ruby/test_float.rb (test_sleep_with_Float) causes tv_nsec
to hit 1000000000 exactly. This bug is currently hidden from
our test by the platform-dependent native_cond_timeout
functions, but a future native_cond_timedwait implementation may
prefer relative timeouts to match ConditionVariable#wait
semantics more closely.

Requesting backport since this may affect 3rd party C extensions.


Files

tv_nsec-overflow.patch (426 Bytes) tv_nsec-overflow.patch normalperson (Eric Wong), 08/16/2014 01:19 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0