~ubuntu-branches/ubuntu/quantal/libgc/quantal

« back to all changes in this revision

Viewing changes to include/gc_gcj.h

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2011-02-19 12:19:56 UTC
  • mfrom: (1.3.2 upstream) (0.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20110219121956-67rb69xlt5nud3v2
Tags: 1:7.1-5
Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
                                  void * ptr_to_struct_containing_descr,
72
72
                                  GC_EXTRA_PARAMS);
73
73
 
74
 
/* Similar to the above, but the size is in words, and we don't */
75
 
/* adjust it.  The size is assumed to be such that it can be    */
76
 
/* allocated as a small object.                                 */
77
 
/* Unless it is known that the collector is not configured      */
78
 
/* with USE_MARK_BYTES and unless it is known that the object   */
79
 
/* has weak alignment requirements, lw must be even.            */
80
 
extern void * GC_gcj_fast_malloc(size_t lw,
81
 
                                 void * ptr_to_struct_containing_descr);
82
 
extern void * GC_debug_gcj_fast_malloc(size_t lw,
83
 
                                 void * ptr_to_struct_containing_descr,
84
 
                                 GC_EXTRA_PARAMS);
85
 
 
86
74
/* Similar to GC_gcj_malloc, but assumes that a pointer to near the     */
87
75
/* beginning of the resulting object is always maintained.              */
88
76
extern void * GC_gcj_malloc_ignore_off_page(size_t lb,
94
82
 
95
83
extern int GC_gcj_debug_kind;
96
84
 
97
 
# if defined(GC_LOCAL_ALLOC_H) && defined(GC_REDIRECT_TO_LOCAL)
98
 
    --> gc_local_alloc.h should be included after this.  Otherwise
99
 
    --> we undo the redirection.
100
 
# endif
101
 
 
102
85
# ifdef GC_DEBUG
103
86
#   define GC_GCJ_MALLOC(s,d) GC_debug_gcj_malloc(s,d,GC_EXTRAS)
104
 
#   define GC_GCJ_FAST_MALLOC(s,d) GC_debug_gcj_fast_malloc(s,d,GC_EXTRAS)
105
87
#   define GC_GCJ_MALLOC_IGNORE_OFF_PAGE(s,d) GC_debug_gcj_malloc(s,d,GC_EXTRAS)
106
88
# else
107
89
#   define GC_GCJ_MALLOC(s,d) GC_gcj_malloc(s,d)
108
 
#   define GC_GCJ_FAST_MALLOC(s,d) GC_gcj_fast_malloc(s,d)
109
90
#   define GC_GCJ_MALLOC_IGNORE_OFF_PAGE(s,d) \
110
91
        GC_gcj_malloc_ignore_off_page(s,d)
111
92
# endif