Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit ddb496d

Browse files
Merge branch 'master' into query-stats
2 parents 7bccec6 + 6f27f55 commit ddb496d

File tree

281 files changed

+13015
-10875
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+13015
-10875
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
parallelism: 2
88
steps:
99
- checkout
10-
- run:
11-
command: ./.circleci/run.sh install-deps
12-
name: Install DMD
1310
- run:
1411
command: ./.circleci/run.sh setup-repos
1512
name: Clone DMD
13+
- run:
14+
command: ./.circleci/run.sh install-deps
15+
name: Install DMD
1616
- run:
1717
command: ./.circleci/run.sh style
1818
name: Check code style

.circleci/run.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -uexo pipefail
44

5-
HOST_DMD_VER=2.072.2 # same as in dmd/src/posix.mak
5+
HOST_DMD_VER=2.079.1
66
CURL_USER_AGENT="CirleCI $(curl --version | head -n 1)"
77
N=4
88
CIRCLE_NODE_INDEX=${CIRCLE_NODE_INDEX:-0}
@@ -31,10 +31,11 @@ download() {
3131
}
3232

3333
install_deps() {
34+
sudo apt-get update
3435
if [ $MODEL -eq 32 ]; then
35-
sudo apt-get update
36-
sudo apt-get install g++-multilib
36+
sudo apt-get install -y g++-multilib
3737
fi
38+
sudo apt-get install -y gdb
3839

3940
download "https://dlang.org/install.sh" "https://nightlies.dlang.org/install.sh" "install.sh"
4041

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
root = true
22

3-
[*.{c,h,d,di,dd}]
4-
end_of_line = lf
3+
[*.{c,cpp,h,d,di,dd}]
54
insert_final_newline = true
65
indent_style = space
76
indent_size = 4

CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ src/core/sys/linux/* @Burgos @redstar @MartinNowak
3535
src/core/sys/netbsd/* @nrTQgc @joakim-noah
3636
src/core/sys/dragonflybsd/* @dkgroot
3737
src/core/sys/openbsd/* @redstar
38-
src/core/sys/osx/* @jacob-carlborg @klickverbot @etcimon @MartinNowak
3938
src/core/sys/posix/* @CyberShadow @MartinNowak @joakim-noah @redstar
4039
src/core/sys/solaris/* @redstar
4140
src/core/sys/windows/* @CyberShadow

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ DRuntime: Runtime Library for the D Programming Language
33

44
[![GitHub tag](https://img.shields.io/github/tag/dlang/druntime.svg?maxAge=86400)](https://github.com/dlang/druntime/releases)
55
[![Bugzilla Issues](https://img.shields.io/badge/issues-Bugzilla-green.svg)](https://issues.dlang.org/buglist.cgi?component=druntime&list_id=220148&product=D&resolution=---)
6-
[![Build status](https://img.shields.io/circleci/project/dlang/druntime.svg?maxAge=86400)](https://circleci.com/gh/dlang/druntime)
6+
[![CircleCI](https://circleci.com/gh/dlang/druntime/tree/master.svg?style=svg)](https://circleci.com/gh/dlang/druntime/tree/master)
77
[![Code coverage](https://img.shields.io/codecov/c/github/dlang/druntime.svg?maxAge=86400)](https://codecov.io/gh/dlang/druntime)
88
[![Issue Stats](https://img.shields.io/issuestats/p/github/dlang/druntime.svg?maxAge=2592000)](http://www.issuestats.com/github/dlang/druntime)
99
[![license](https://img.shields.io/github/license/dlang/druntime.svg)](https://github.com/dlang/druntime/blob/master/LICENSE.txt)

benchmark/arrayops/arrayops.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
66
* Authors: Martin Nowak
77
*/
8-
import core.cpuid, std.algorithm, std.datetime, std.meta, std.stdio, std.string,
9-
std.range;
8+
import core.cpuid, std.algorithm, std.meta, std.stdio, std.string, std.range;
9+
import std.datetime.stopwatch : benchmark, StopWatch, AutoStart;
1010

1111
float[6] getLatencies(T, string op)()
1212
{
@@ -33,7 +33,7 @@ float[6] getLatencies(T, string op)()
3333
.replace("c", "c[off .. off + len]");
3434
mixin(op ~ ";");
3535
}
36-
latency = min(latency, sw.peek.nsecs);
36+
latency = min(latency, sw.peek.total!"nsecs");
3737
}
3838
}
3939
float[6] res = latencies[] / 1024;
@@ -69,7 +69,7 @@ float[4] getThroughput(T, string op)()
6969
.replace("c", "c[off .. off + len]");
7070
mixin(op ~ ";");
7171
}
72-
immutable nsecs = sw.peek.nsecs;
72+
immutable nsecs = sw.peek.total!"nsecs";
7373
runMasked({latency = min(latency, nsecs);});
7474
}
7575
}

benchmark/gcbench/conmsg.d

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
import std.algorithm, std.concurrency, std.conv, std.file, std.json, std.range;
99

10-
JSONValue buildVal(in dchar[] word)
10+
JSONValue buildVal(in dchar[] word) pure
1111
{
1212
JSONValue[string] res;
1313
res["word"] = word.to!string;
@@ -35,27 +35,27 @@ void producer(Tid consumer)
3535

3636
void serialize(in JSONValue val, ref ubyte[] buf)
3737
{
38-
with (JSON_TYPE) switch (val.type)
38+
with (JSONType) switch (val.type)
3939
{
40-
case OBJECT:
40+
case object:
4141
foreach (k, v; val.object)
4242
{
4343
buf ~= cast(ubyte[])k;
4444
serialize(v, buf);
4545
}
4646
break;
4747

48-
case ARRAY:
48+
case array:
4949
foreach (v; val.array)
5050
serialize(v, buf);
5151
break;
5252

53-
case UINTEGER:
53+
case uinteger:
5454
ulong v = val.uinteger;
5555
buf ~= (cast(ubyte*)&v)[0 .. v.sizeof];
5656
break;
5757

58-
case STRING:
58+
case string:
5959
buf ~= cast(ubyte[])val.str;
6060
break;
6161

changelog/array.dd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Added `core.stdcpp.array`.
2+
3+
Added `core.stdcpp.array`, which links against C++ `std::array`

changelog/backtrace_debug_info_macos.dd

Lines changed: 0 additions & 39 deletions
This file was deleted.

changelog/cpp_destroy.dd

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)