[BACK]Return to new_gc_alloc.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / gc / include

Diff for /OpenXM_contrib2/asir2000/gc/include/new_gc_alloc.h between version 1.2 and 1.3

version 1.2, 2000/04/10 08:31:35 version 1.3, 2001/04/20 07:39:25
Line 20 
Line 20 
 // It also doesn't yet understand the new header file names or  // It also doesn't yet understand the new header file names or
 // namespaces.  // namespaces.
 //  //
 // This assumes the collector has been compiled with -DATOMIC_UNCOLLECTABLE  // This assumes the collector has been compiled with -DATOMIC_UNCOLLECTABLE.
 // and -DALL_INTERIOR_POINTERS.  We also recommend  // The user should also consider -DREDIRECT_MALLOC=GC_uncollectable_malloc,
 // -DREDIRECT_MALLOC=GC_uncollectable_malloc.  // to ensure that object allocated through malloc are traced.
 //  //
 // Some of this could be faster in the explicit deallocation case.  // Some of this could be faster in the explicit deallocation case.
 // In particular, we spend too much time clearing objects on the  // In particular, we spend too much time clearing objects on the
Line 43 
Line 43 
 // problems.  The argument for changing it is that the usual default  // problems.  The argument for changing it is that the usual default
 // allocator is usually a very bad choice for a garbage collected environment.)  // allocator is usually a very bad choice for a garbage collected environment.)
 //  //
   // This code assumes that the collector itself has been compiled with a
   // compiler that defines __STDC__ .
   //
   
 #ifndef GC_ALLOC_H  #ifndef GC_ALLOC_H
   
 #include "gc.h"  #include "gc.h"
 #include <alloc.h>  #include <stack>  // A more portable way to get stl_alloc.h .
   
 #define GC_ALLOC_H  #define GC_ALLOC_H
   
Line 337  class simple_alloc<T, alloc> { \ (public)
Line 340  class simple_alloc<T, alloc> { \ (public)
         { alloc::ptr_free_deallocate(p, sizeof (T)); } \          { alloc::ptr_free_deallocate(p, sizeof (T)); } \
 };  };
   
   __STL_BEGIN_NAMESPACE
   
 __GC_SPECIALIZE(char, gc_alloc)  __GC_SPECIALIZE(char, gc_alloc)
 __GC_SPECIALIZE(int, gc_alloc)  __GC_SPECIALIZE(int, gc_alloc)
 __GC_SPECIALIZE(unsigned, gc_alloc)  __GC_SPECIALIZE(unsigned, gc_alloc)
Line 360  __GC_SPECIALIZE(int, single_client_traceable_alloc)
Line 365  __GC_SPECIALIZE(int, single_client_traceable_alloc)
 __GC_SPECIALIZE(unsigned, single_client_traceable_alloc)  __GC_SPECIALIZE(unsigned, single_client_traceable_alloc)
 __GC_SPECIALIZE(float, single_client_traceable_alloc)  __GC_SPECIALIZE(float, single_client_traceable_alloc)
 __GC_SPECIALIZE(double, single_client_traceable_alloc)  __GC_SPECIALIZE(double, single_client_traceable_alloc)
   
   __STL_END_NAMESPACE
   
 #ifdef __STL_USE_STD_ALLOCATORS  #ifdef __STL_USE_STD_ALLOCATORS
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>