You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting the Rust runtime more than once (sequentially) fails with the following error.
task <unnamed> failed at 'assert_once_ever happened twice: last task exiting', /private/tmp/rust-ZPXh/src/libstd/rt/mod.rs:305
libc++abi.dylib: terminate called throwing an exception
This is a simple example that reproduces the problem.
#[start]fnstart(argc:int,argv:**u8) -> int{
do std::rt::start(argc, argv){println("First invocation");};
do std::rt::start(argc, argv){println("Second invocation");};0}
The actual use-case is to call Rust code from Java (through JNI) multiple times. Calling Rust code this way requires starting the runtime for each call, which works for the first invocation, but not for subsequent ones
The text was updated successfully, but these errors were encountered:
This changes an `assert_once_ever!` assertion to just a plain old assertion
around an atomic boolean to ensure that one particular runtime doesn't attempt
to exit twice.
Closes#9739
Address issues 9739 and 9782
This PR fixesrust-lang#9739 in the manner I suggested in rust-lang/rust-clippy#9739 (comment).
This PR also fixes the compilation failures in rust-lang#9782 (but doesn't address `@e00E's` other objections).
Fixesrust-lang#9739
r? `@Jarcho`
changelog: Fix two `needless_borrow` false positives, one involving borrows in `if`-`else`s, the other involving qualified function calls
Rust Version: 0.8
Platform: OSX
Starting the Rust runtime more than once (sequentially) fails with the following error.
This is a simple example that reproduces the problem.
The actual use-case is to call Rust code from Java (through JNI) multiple times. Calling Rust code this way requires starting the runtime for each call, which works for the first invocation, but not for subsequent ones
The text was updated successfully, but these errors were encountered: