about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2013-06-26 17:42:11 +0200
committerFedor Indutny <fedor.indutny@gmail.com>2013-07-09 19:20:26 +0400
commitdb24ee9db02acf0912a89626e09801665bbb365a (patch)
treed8f0a542f08db501d88ec74fa7da332e81494eeb /src/test/codegen/stack-alloc-string-slice.cc
parent4a868c7c1df6a0e68b03c1710474e83c057d69c0 (diff)
downloadrust-db24ee9db02acf0912a89626e09801665bbb365a.tar.gz
rust-db24ee9db02acf0912a89626e09801665bbb365a.zip
os: introduce cross-platform MemoryMap bindings
Basically, one may just do:

    MemoryMap::new(16, ~[
      MapExecutable,
      MapReadable,
      MapWritable
    ])

And executable+readable+writable chunk of at least 16 bytes size will be
allocated and freed with the result of `MemoryMap::new`.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions