@@ -157,8 +157,8 @@ void destroy_space(struct space space) {
157157
158158void init_heap (struct gc_heap * heap , struct space space ) {
159159 if (align (space .size , kPageSize ) != space .size ) {
160- fprintf (stderr , "heap size (%lu) must be a multiple of %lu\n" ,
161- space . size , kPageSize );
160+ fprintf (stderr , "heap size (%lu) must be a multiple of %lu\n" , space . size ,
161+ kPageSize );
162162 abort ();
163163 }
164164 heap -> space = space ;
@@ -240,8 +240,8 @@ void assert_in_heap(struct object** pointer, struct gc_heap* heap) {
240240 return ;
241241 }
242242 if (!in_heap (heap , obj )) {
243- fprintf (stderr , "pointer %p not in heap [%p, %p)\n" , obj , ( void * ) heap -> to_space ,
244- (void * )heap -> hp );
243+ fprintf (stderr , "pointer %p not in heap [%p, %p)\n" , obj ,
244+ (void * )heap -> to_space , ( void * ) heap -> hp );
245245 abort ();
246246 }
247247}
@@ -315,7 +315,8 @@ byte obj_tag(struct gc_obj* obj) { return (obj->tag & 0xff); }
315315
316316bool obj_has_tag (struct gc_obj * obj , byte tag ) { return obj_tag (obj ) == tag ; }
317317
318- static NEVER_INLINE ALLOCATOR struct object * allocate_slow_path (struct gc_heap * heap , uword tag , uword size ) {
318+ static NEVER_INLINE ALLOCATOR struct object * allocate_slow_path (
319+ struct gc_heap * heap , uword tag , uword size ) {
319320 // Outlining allocate_slow_path like this helps the compiler generate better
320321 // code in callers of allocate such as mklist. For some reason we have to
321322 // tail-duplicate allocate, too :(
@@ -552,7 +553,8 @@ struct record* as_record(struct object* obj) {
552553}
553554
554555struct object * mkrecord (struct gc_heap * heap , size_t num_fields ) {
555- uword size = align_size (sizeof (struct record ) + num_fields * sizeof (struct record_field ));
556+ uword size = align_size (sizeof (struct record ) +
557+ num_fields * sizeof (struct record_field ));
556558 struct object * result = allocate (heap , TAG_RECORD , size );
557559 as_record (result )-> size = num_fields ;
558560 // Assumes the items will be filled in immediately after calling mkrecord so
@@ -851,5 +853,5 @@ struct object* println(struct object* obj) {
851853// __stop_const_heap are defined by the linker.
852854#define CONST_HEAP const __attribute__((section("const_heap")))
853855CONST_HEAP
854- __attribute__((used )) struct heap_string private_unused_const_heap = {
855- .HEAD .tag = TAG_STRING , .size = 11 , .data = "hello world" };
856+ __attribute__((used )) struct heap_string private_unused_const_heap = {
857+ .HEAD .tag = TAG_STRING , .size = 11 , .data = "hello world" };
0 commit comments