www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14863] New: CLOCK_BOOTTIME should be optional to support

https://issues.dlang.org/show_bug.cgi?id=14863

          Issue ID: 14863
           Summary: CLOCK_BOOTTIME should be optional to support <2.6.39
                    kernels
           Product: D
           Version: D2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: issues.dlang jmdavisProg.com
          Reporter: code dawg.eu
                CC: schveiguy yahoo.com

Currently crashes every D binary on an older kernel.
We might reconsider to lazily initialize the resolutions.

http://forum.dlang.org/post/yfaddcwesfupysxdacse forum.dlang.org

MonoTime is the replacement for TickDuration and it's initialized from the
runtime initialization function (rt_init). This is because the GC and others
may need time functionality.

Unfortunately, it looks like MonoTime does not currently support your kernel
version. It needs at least Linux 2.6.39. The reason being is that it has the
CLOCK_BOOTTIME clock which was implemented in Linux 2.6.39. Without this clock,
the minimum version would be Linux 2.6.32.

--
Aug 02 2015