Skip to content

Instantly share code, notes, and snippets.

View yuyichao's full-sized avatar

Yichao Yu yuyichao

View GitHub Profile
INFO: Building Homebrew
INFO: Cloning brew from https://github.com/Homebrew/homebrew.git
Cloning into '/Users/travis/.julia/v0.5/Homebrew/deps/usr'...
remote: Counting objects: 3745, done.
remote: Compressing objects: 100% (3580/3580), done.
diff --git a/base/fft/FFTW.jl b/base/fft/FFTW.jl
index a8e7108..e20edc0 100644
--- a/base/fft/FFTW.jl
+++ b/base/fft/FFTW.jl
@@ -73,13 +73,12 @@ typealias fftwTypeSingle Union(Type{Float32},Type{Complex64})
# since it is not written to. Hence, it is convenient to create an
# array-like type that carries a size and a stride like a "real" array
# but which is converted to C_NULL as a pointer.
-immutable FakeArray{T, N}
+immutable FakeArray{T, N} <: AbstractArray{T, N}
gcc -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -g -fvar-tracking-assignments -O3 -g -fPIC -fvisibility=hidden -DPy_BUILD_CORE -DPYPY_USE_ASMGCC -DPYPY_JIT_CODEMAP -DPYPY_CPU_HAS_STANDARD_PRECISION -DHAVE_SYS_SYSCALL_H -DHAVE_SETSID -DPy_BUILD_CORE -frandom-seed=implement_7.c -o implement_7.s -S implement_7.c -I"/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/rpython"/translator/c -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/cpyext/include -I.. -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_codecs -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_vmprof/src -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_cffi_backend/src -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_posixsubprocess -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_multibytecodec -I/home/yuyichao/projects/archcn/repo
gcc -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -g -fvar-tracking-assignments -O3 -g -fPIC -fvisibility=hidden -DPy_BUILD_CORE -DPYPY_USE_ASMGCC -DPYPY_JIT_CODEMAP -DPYPY_CPU_HAS_STANDARD_PRECISION -DHAVE_SYS_SYSCALL_H -DHAVE_SETSID -DPy_BUILD_CORE -frandom-seed=implement_7.c -o implement_7.s -S implement_7.c -I"/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/rpython"/translator/c -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/cpyext/include -I.. -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_codecs -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_vmprof/src -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_cffi_backend/src -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_posixsubprocess -I/home/yuyichao/projects/archcn/repo/pypy3-hg/src/pypy/pypy/module/_multibytecodec -I/home/yuyichao/projects/archcn/repo
@yuyichao
yuyichao / gist:08a9fc9d1c5506fc3b31
Last active August 29, 2015 14:22
#11284 Helper function
define i64 @julia_f0_20978(i64, i64) {
top:
ret i64 %0
}
define i64 @julia_f1_20980(i64, i64) {
top:
%2 = icmp eq i64 %1, 0
br i1 %2, label %if, label %L
@yuyichao
yuyichao / gist:4cd0bf9570ef4b9c3c7f
Created May 31, 2015 02:15
Local GC Frame for `throw`
define i64 @julia_f0_20827(i64, i64) {
top:
ret i64 %0
}
define i64 @julia_f1_20829(i64, i64) {
top:
%2 = icmp eq i64 %1, 0
br i1 %2, label %if, label %L
define i64 @julia_f0_20827(i64, i64) {
top:
ret i64 %0
}
define i64 @julia_f1_20829(i64, i64) {
top:
%2 = icmp eq i64 %1, 0
br i1 %2, label %if, label %L
BUILD_EXTRA=0
pkgbase=julia-git
if ((BUILD_EXTRA)); then
pkgname=('julia-git' 'julia-doc-git' 'emacs-julia-mode-git')
else
pkgname=('julia-git')
fi
pkgver=0.3.0.rc3.4894.gdefb363
pkgrel=1
diff --git a/src/alloc.c b/src/alloc.c
index 913982d..60bc49e 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -842,6 +842,7 @@ jl_expr_t *jl_exprn(jl_sym_t *head, size_t n)
jl_set_typeof(ex, jl_expr_type);
ex->head = head;
ex->args = ar;
+ gc_wb(ex, ar);
ex->etype = (jl_value_t*)jl_any_type;
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6b235fa in ptrhash_peek_bp (key=key@entry=0x7ffff7f0bad8,
h=0x7ffdf5928ec0, h=0x7ffdf5928ec0) at ptrhash.c:26
26 HTIMPL(ptrhash, inthash, OP_EQ)
(gdb) bt
#0 0x00007ffff6b235fa in ptrhash_peek_bp (key=key@entry=0x7ffff7f0bad8,
h=0x7ffdf5928ec0, h=0x7ffdf5928ec0) at ptrhash.c:26
#1 0x00007ffff6b23663 in ptrhash_get (h=h@entry=0x7ffdf5928ec0,
key=key@entry=0x7ffff7f0bad8) at ptrhash.c:26
#2 0x00007ffff6aa55c3 in jl_get_binding_ (m=0x7ffdf5928eb0,