~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to erts/emulator/sys/common/erl_mseg.h

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * %CopyrightBegin%
3
3
 *
4
 
 * Copyright Ericsson AB 2002-2010. All Rights Reserved.
 
4
 * Copyright Ericsson AB 2002-2011. All Rights Reserved.
5
5
 *
6
6
 * The contents of this file are subject to the Erlang Public License,
7
7
 * Version 1.1, (the "License"); you may not use this file except in
44
44
    Uint amcbf;
45
45
    Uint rmcbf;
46
46
    Uint mcs;
47
 
    Uint cci;
 
47
    Uint nos;
48
48
} ErtsMsegInit_t;
49
49
 
50
50
#define ERTS_MSEG_INIT_DEFAULT_INITIALIZER                              \
60
60
    int  preserv;
61
61
    UWord abs_shrink_th;
62
62
    UWord rel_shrink_th;
 
63
    int sched_spec;
 
64
#if HALFWORD_HEAP
 
65
    int low_mem;
 
66
#endif
63
67
} ErtsMsegOpt_t;
64
68
 
65
 
#define ERTS_MSEG_DEFAULT_OPT_INITIALIZER                               \
66
 
{                                                                       \
67
 
    1,                  /* Use cache                            */      \
68
 
    1,                  /* Preserv data                         */      \
69
 
    0,                  /* Absolute shrink threshold            */      \
70
 
    0                   /* Relative shrink threshold            */      \
71
 
}
 
69
extern const ErtsMsegOpt_t erts_mseg_default_opt;
72
70
 
73
71
void *erts_mseg_alloc(ErtsAlcType_t, Uint *);
74
72
void *erts_mseg_alloc_opt(ErtsAlcType_t, Uint *, const ErtsMsegOpt_t *);
78
76
void *erts_mseg_realloc_opt(ErtsAlcType_t, void *, Uint, Uint *,
79
77
                            const ErtsMsegOpt_t *);
80
78
void  erts_mseg_clear_cache(void);
81
 
Uint  erts_mseg_no(void);
 
79
void  erts_mseg_cache_check(void);
 
80
Uint  erts_mseg_no( const ErtsMsegOpt_t *);
82
81
Uint  erts_mseg_unit_size(void);
83
82
void  erts_mseg_init(ErtsMsegInit_t *init);
84
83
void  erts_mseg_late_init(void); /* Have to be called after all allocators,
85
84
                                   threads and timers have been initialized. */
86
 
void  erts_mseg_exit(void);
87
 
Eterm erts_mseg_info_options(int *, void*, Uint **, Uint *);
88
 
Eterm erts_mseg_info(int *, void*, int, Uint **, Uint *);
 
85
Eterm erts_mseg_info_options(int, int *, void*, Uint **, Uint *);
 
86
Eterm erts_mseg_info(int, int *, void*, int, Uint **, Uint *);
89
87
 
90
88
#endif /* #if HAVE_ERTS_MSEG */
91
89