Skip to content

Comments

Eliminate shared this for allocators#5463

Merged
dlang-bot merged 1 commit intodlang:masterfrom
andralex:allocatorhassharedstaticzisnomore
Jun 13, 2017
Merged

Eliminate shared this for allocators#5463
dlang-bot merged 1 commit intodlang:masterfrom
andralex:allocatorhassharedstaticzisnomore

Conversation

@andralex
Copy link
Member

Yah.

@andralex
Copy link
Member Author

Bit worried about the initOnce slowdown on dmd.

Copy link
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit worried about the initOnce slowdown on dmd.

Same here, but as this one is at least in std.experimental

import std.experimental.allocator.gc_allocator : GCAllocator;
import std.concurrency : initOnce;
return initOnce!_processAllocator(
sharedAllocatorObject(GCAllocator.instance));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: that's a weird parentheses style :O

{
return _processAllocator;
import std.experimental.allocator.gc_allocator : GCAllocator;
import std.concurrency : initOnce;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW that would have been catched by an sorted imports chcker ;-)

@dlang-bot dlang-bot merged commit 9b5a541 into dlang:master Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants