0000000000000000 <__rust_maybe_catch_panic>:
0: 55 push %rbp
1: 41 57 push %r15
3: 41 56 push %r14
5: 53 push %rbx
6: 50 push %rax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Raw source --- | |
(a, b) { | |
a.x = b; | |
} | |
--- Optimized code --- | |
optimization_id = 0 | |
source_position = 225 | |
kind = TURBOFAN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
#include <atomic> | |
#include <cassert> | |
#include <mutex> | |
const int ITERATIONS = 10'000'000; | |
std::mutex mtx; | |
int state = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runRichards() { | |
var scheduler = new Scheduler(); | |
scheduler.addIdleTask(0, null, 1000); | |
var queue = new Packet(); | |
scheduler.addWorkerTask(1, queue); | |
if (scheduler.queueCount != 2322) {} | |
} | |
function Scheduler() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.openjdk.jol.datamodel; | |
import org.openjdk.jol.util.MathUtil; | |
public class FwdptrDataModel implements DataModel { | |
private final int align; | |
private final boolean compressedOops; | |
private final FwdptrModel fwdptrModel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_imms(size, length) | |
length | case size | |
when 2 then 0b111100 | |
when 4 then 0b111000 | |
when 8 then 0b110000 | |
when 16 then 0b100000 | |
when 32 then 0b000000 | |
when 64 then 0b000000 | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5555555555555555 0101010101010101010101010101010101010101010101010101010101010101 size=02 length=00 rotation=00 N=0 immr=000000 imms=111100 | |
aaaaaaaaaaaaaaaa 1010101010101010101010101010101010101010101010101010101010101010 size=02 length=00 rotation=01 N=0 immr=000001 imms=111100 | |
1111111111111111 0001000100010001000100010001000100010001000100010001000100010001 size=04 length=00 rotation=00 N=0 immr=000000 imms=111000 | |
8888888888888888 1000100010001000100010001000100010001000100010001000100010001000 size=04 length=00 rotation=01 N=0 immr=000001 imms=111000 | |
4444444444444444 0100010001000100010001000100010001000100010001000100010001000100 size=04 length=00 rotation=02 N=0 immr=000010 imms=111000 | |
2222222222222222 0010001000100010001000100010001000100010001000100010001000100010 size=04 length=00 rotation=03 N=0 immr=000011 imms=111000 | |
3333333333333333 0011001100110011001100110011001100110011001100110011001100110011 size=04 length=01 rotation=00 N=0 immr=000000 imms=111001 | |
9999999999999999 100110011001100110011001100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::cell::RefCell; | |
use std::ops::Index; | |
struct GrowableVec<T> { | |
elements: RefCell<Vec<Box<RefCell<T>>>>, | |
} | |
impl<T> GrowableVec<T> { | |
fn new() -> GrowableVec<T> { | |
GrowableVec { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
MAINTAINER [email protected] | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
mercurial \ | |
wget \ | |
unzip \ | |
libtool \ | |
autoconf \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Date = chrono::Date<chrono::Local>; | |
pub struct DateIterator { | |
start: Date, | |
end: Date | |
} | |
impl Iterator for DateIterator { | |
// ... not important | |
} |
NewerOlder