removed 1 line of code from greenthreads
This commit is contained in:
@@ -277,8 +277,7 @@ in that book. The code below is wildly unsafe and it's just to show a real examp
|
|||||||
It's not in any way meant to showcase "best practice". Just so we're on
|
It's not in any way meant to showcase "best practice". Just so we're on
|
||||||
the same page.</p>
|
the same page.</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<pre><pre class="playpen"><code class="language-rust edition2018">#![feature(asm)]
|
<pre><pre class="playpen"><code class="language-rust edition2018">#![feature(asm, naked_functions)]
|
||||||
#![feature(naked_functions)]
|
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2;
|
const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2;
|
||||||
|
|||||||
@@ -331,8 +331,7 @@ in that book. The code below is wildly unsafe and it's just to show a real examp
|
|||||||
It's not in any way meant to showcase "best practice". Just so we're on
|
It's not in any way meant to showcase "best practice". Just so we're on
|
||||||
the same page.</p>
|
the same page.</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<pre><pre class="playpen"><code class="language-rust edition2018">#![feature(asm)]
|
<pre><pre class="playpen"><code class="language-rust edition2018">#![feature(asm, naked_functions)]
|
||||||
#![feature(naked_functions)]
|
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2;
|
const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -147,8 +147,7 @@ this:
|
|||||||
> the same page.
|
> the same page.
|
||||||
|
|
||||||
```rust, edition2018
|
```rust, edition2018
|
||||||
#![feature(asm)]
|
#![feature(asm, naked_functions)]
|
||||||
#![feature(naked_functions)]
|
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2;
|
const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user