Skip to content

Commit e1be1e1

Browse files
committed
---
yaml --- r: 54504 b: refs/heads/snap-stage3 c: 4f1d8cb h: refs/heads/master v: v3
1 parent 632496b commit e1be1e1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: fdf48a7b52de948b3ec4ba187539a6164a56edcb
4+
refs/heads/snap-stage3: 4f1d8cb6fce625d13baf12f49e41d29f1433c8dd
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/rt/sync/rust_thread.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111

1212
#include "rust_thread.h"
13+
#include <limits.h>
1314

1415
const size_t default_stack_sz = 1024*1024;
1516

@@ -41,6 +42,8 @@ rust_thread::start() {
4142
#if defined(__WIN32__)
4243
thread = CreateThread(NULL, stack_sz, rust_thread_start, this, 0, NULL);
4344
#else
45+
// PTHREAD_STACK_MIN of some system is larger than default size
46+
// so we check stack_sz to prevent assertion failure.
4447
if (stack_sz < PTHREAD_STACK_MIN) {
4548
stack_sz = PTHREAD_STACK_MIN;
4649
}

0 commit comments

Comments
 (0)