https://github.com/JuliaLang/julia
Raw File
Tip revision: eaeee720ed1d4109801549813c7bdbe5d16c75e4 authored by Keno Fischer on 22 April 2014, 02:40:51 UTC
Fix int32 chokepoint in jl_uv for 6567
Tip revision: eaeee72
options.h
#ifndef JL_OPTIONS_H
#define JL_OPTIONS_H

// Build-time options for debugging, tweaking, and selecting alternative
// implementations of core features.

// object layout options ------------------------------------------------------

#ifdef _P64
// a risky way to save 8 bytes per tuple, by storing the length in the
// top bits of the type tag. only possible on 64-bit.
//#define OVERLAP_TUPLE_LEN
#endif

// if this is not defined, only individual dimension sizes are
// stored and not total length, to save space.
#define STORE_ARRAY_LEN

// how much space we're willing to waste if an array outgrows its
// original object
#define ARRAY_INLINE_NBYTES (2048*sizeof(void*))


// GC options -----------------------------------------------------------------

// only one GC is supported at this time
#define JL_GC_MARKSWEEP

// debugging options

// with MEMDEBUG, every object is allocated explicitly with malloc, and
// filled with 0xbb before being freed. this helps tools like valgrind
// catch invalid accesses.
//#define MEMDEBUG

// profiling options

// GC_FINAL_STATS prints total GC stats at exit
//#define GC_FINAL_STATS

// MEMPROFILE prints pool summary statistics after every GC
//#define MEMPROFILE

// GCTIME prints time taken by each phase of GC
//#define GCTIME

// OBJPROFILE counts objects by type
//#define OBJPROFILE


// method dispatch profiling --------------------------------------------------

// turn type inference on/off. this is for internal debugging only, and must be
// turned on for all practical purposes.
#define ENABLE_INFERENCE

// print all signatures type inference is invoked on
//#define TRACE_INFERENCE

// print all generic method dispatches (excludes inlined and specialized call
// sites). this generally prints too much output to be useful.
//#define JL_TRACE

// count generic (not inlined or specialized) calls to each function. recorded
// in the `ncalls` field of jl_methtable_t.
//#define JL_GF_PROFILE


// task options ---------------------------------------------------------------

// select an implementation of stack switching.
// currently only COPY_STACKS is recommended.
#ifndef COPY_STACKS
#define COPY_STACKS
#endif

#endif
back to top