@@ -157,8 +157,8 @@ void destroy_space(struct space space) {
157
157
158
158
void init_heap (struct gc_heap * heap , struct space space ) {
159
159
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 );
162
162
abort ();
163
163
}
164
164
heap -> space = space ;
@@ -240,8 +240,8 @@ void assert_in_heap(struct object** pointer, struct gc_heap* heap) {
240
240
return ;
241
241
}
242
242
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 );
245
245
abort ();
246
246
}
247
247
}
@@ -315,7 +315,8 @@ byte obj_tag(struct gc_obj* obj) { return (obj->tag & 0xff); }
315
315
316
316
bool obj_has_tag (struct gc_obj * obj , byte tag ) { return obj_tag (obj ) == tag ; }
317
317
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 ) {
319
320
// Outlining allocate_slow_path like this helps the compiler generate better
320
321
// code in callers of allocate such as mklist. For some reason we have to
321
322
// tail-duplicate allocate, too :(
@@ -552,7 +553,8 @@ struct record* as_record(struct object* obj) {
552
553
}
553
554
554
555
struct 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 ));
556
558
struct object * result = allocate (heap , TAG_RECORD , size );
557
559
as_record (result )-> size = num_fields ;
558
560
// Assumes the items will be filled in immediately after calling mkrecord so
@@ -851,5 +853,5 @@ struct object* println(struct object* obj) {
851
853
// __stop_const_heap are defined by the linker.
852
854
#define CONST_HEAP const __attribute__((section("const_heap")))
853
855
CONST_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