about summary refs log tree commit diff
path: root/src/rt
AgeCommit message (Collapse)AuthorLines
2013-08-23rt: Remove exit_status helpersBrian Anderson-17/+0
2013-08-23rt: Remove sync.hBrian Anderson-54/+0
2013-08-23rt: Memory regions are never synchronized nowBrian Anderson-26/+8
2013-08-23rt: Remove timerBrian Anderson-126/+26
2013-08-23rt: Remove indexed_listBrian Anderson-115/+0
2013-08-23rt: Remove rust_exchange_allocBrian Anderson-70/+0
2013-08-23rt: Remove last use of C++ exchange allocBrian Anderson-1/+1
2013-08-22auto merge of #8596 : vadimcn/rust/master, r=alexcrichtonbors-14/+10
This resolves issue #908. Notable changes: - On Windows, LLVM integrated assembler emits bad stack unwind tables when segmented stacks are enabled. However, unwind info directives in the assembly output are correct, so we generate assembly first and then run it through an external assembler, just like it is already done for Android builds. - Linker is invoked via "g++" command instead of "gcc": g++ passes the appropriate magic parameters to the linker, which ensure correct registration of stack unwind tables in dynamic libraries.
2013-08-22make check appeasementJeff Olson-1/+1
2013-08-22rt: re-adding lines erroneous stripped out in merge conflictJeff Olson-0/+9
2013-08-22std: stripping unneeded fcntl.h include from rust_uv.cppJeff Olson-1/+0
2013-08-22std: remove fcntl const bindings + making valgrind clean w/ no owned vecsJeff Olson-45/+0
2013-08-22std: add read and unlink to low-level FileDescriptor + end-to-end CRUD testJeff Olson-5/+32
2013-08-22std: working tests for low-level libuv open, write and close operationsJeff Olson-4/+48
2013-08-22std: bootstrapping libuv-based fileio in newrt... open & closeJeff Olson-0/+10
the test "touch"es a new file
2013-08-22Emit unwind info in rustrt assembly files on Windows.Vadim Chugunov-10/+10
2013-08-22Un-disable stack unwinding on Windows.Vadim Chugunov-4/+0
2013-08-20auto merge of #8631 : anasazi/rust/homing-io, r=brsonbors-0/+9
libuv handles are tied to the event loop that created them. In order to perform IO, the handle must be on the thread with its home event loop. Thus, when as task wants to do IO it must first go to the IO handle's home event loop and pin itself to the corresponding scheduler while the IO action is in flight. Once the IO action completes, the task is unpinned and either returns to its home scheduler if it is a pinned task, or otherwise stays on the current scheduler. Making new blocking IO implementations (i.e. files) thread safe is rather simple. Add a home field to the IO handle's struct in uvio and implement the HomingIO trait. Wrap every IO call in the HomingIO.home_for_io method, which will take care of the scheduling. I'm not sure if this remains thread safe in the presence of asynchronous IO at the libuv level. If we decide to do that, then this set up should be revisited.
2013-08-19auto merge of #8584 : thestinger/rust/jemalloc, r=graydonbors-1/+22
This reverts commit 371a316ec93a977f9dcd305b5f532cd394fa6885. Closes #7217
2013-08-19jemalloc: use $(AR), not `ar`Daniel Micay-2/+2
2013-08-19regenerate configureGraydon Hoare-1/+13
2013-08-19Instruct event loops to ignore SIGPIPE when constructed.Eric Reed-0/+9
libuv does not always catch SIGPIPE.
2013-08-19rt: make jemalloc header conform to android signature.Graydon Hoare-0/+9
2013-08-18auto merge of #8551 : huonw/rust/speling, r=alexcrichtonbors-1/+1
(This doesn't add/remove `u`s or change `ize` to `ise`, or anything like that.)
2013-08-16rt: Remove unused uv helpersBrian Anderson-108/+0
2013-08-16rt: Remove empty rust_upcall.hBrian Anderson-15/+0
2013-08-16rt: Remove unused rust_clone_type_desc declarationBrian Anderson-2/+0
2013-08-16rt: Remove rust_stackBrian Anderson-159/+10
2013-08-16rt: Remove rust_refcount.hBrian Anderson-32/+2
2013-08-16rt: Remove unused parts of rust_logBrian Anderson-80/+6
2013-08-16rt: Remove unused parts of rust_globals.hBrian Anderson-21/+0
2013-08-16rt: Remove rust_signal.hBrian Anderson-27/+0
2013-08-16rt: Remove rust_envBrian Anderson-203/+53
2013-08-16doc: convert remaining uses of core:: to std::.Huon Wilson-1/+1
2013-08-11Add a field `borrow_offset` to the type descriptor indicatingNiko Matsakis-0/+2
what amount a T* pointer must be adjusted to reach the contents of the box. For `~T` types, this requires knowing the type `T`, which is not known in the case of objects.
2013-08-09auto merge of #8296 : erickt/rust/remove-str-trailing-nulls, r=ericktbors-3/+2
This PR fixes #7235 and #3371, which removes trailing nulls from `str` types. Instead, it replaces the creation of c strings with a new type, `std::c_str::CString`, which wraps a malloced byte array, and respects: * No interior nulls * Ends with a trailing null
2013-08-09Remove the C++ runtime. SayonaraBrian Anderson-4247/+35
2013-08-06Merge commit 'd89ff7eef969aee6b493bc846b64d68358fafbcd' into ↵Erick Tryzelaar-0/+14
remove-str-trailing-nulls
2013-08-04Add support for vanilla linux on arm.Luqman Aden-0/+14
2013-08-04Merge remote-tracking branch 'remotes/origin/master' into str-remove-nullErick Tryzelaar-0/+11
2013-08-04Remove trailing null from stringsErick Tryzelaar-3/+2
2013-08-03rt: Fix a corner-case in unwinding that leads to stack overflowBrian Anderson-0/+11
In some scenarios upcall_rust_stack_limit fails to record the stack limit, leaving it 0, and allowing subsequent Rust code to run into the red zone.
2013-07-31extra: Remove dbg module and rt support codeBrian Anderson-112/+0
This stuff is ancient, unused, and tied to oldsched
2013-07-31auto merge of #8145 : brson/rust/rttestfixes, r=pcwaltonbors-0/+6
Two commits here that fix test case dependencies on the old scheduler.
2013-07-31auto merge of #8143 : brson/rust/change-dir-lock, r=luqmanabors-2/+2
2013-07-30test: Use a test extern in various foreign fn testsBrian Anderson-0/+6
2013-07-30rt: Use the correct global change_dir lockBrian Anderson-2/+2
2013-07-30std: Remove ManualThreads spawn modeBrian Anderson-14/+0
2013-07-30std::rt: Change Thread interface to require an explicit joinBrian Anderson-2/+8
Makes it more obvious what's going on
2013-07-28auto merge of #8046 : kmcallister/rust/unused-log, r=pcwaltonbors-6/+7