public void dump_memory ( Writer out ) throws IOException { int qlist_num ; out . write ( "First quick size: " + first_quick_size + "\n" ) ; out . write ( "Last quick size: " + last_quick_size + "\n" ) ; out . write ( "Grain size: " + grain_size + "\n" ) ; out . write ( "Acceptable waste: " + acceptable_waste + "\n" ) ; out . write ( "Tail pointer in memory: " + tail_ptr + "\n" ) ; out . write ( "First allocatable byte: " + start ( ) + "\n\n" ) ; out . write ( "Free lists from memory structures\n" ) ; for ( qlist_num = 0 ; qlist_num <= last_ql_index ; qlist_num ++ ) { out . write ( qlist_num + ": " ) ; out . write ( "Length = " + ql_heads [ qlist_num ] . length + "; " ) ; print_memory_freelist ( out , ql_heads [ qlist_num ] . first_block ) ; } ; out . write ( "Nonempty free lists: " + nonempty_lists + "\n" ) ; out . write ( "Tail pointer in memory: " + tail_ptr + "\n" ) ; out . write ( "First allocatable byte: " + start ( ) + "\n\n" ) ; }
Outputs storage information stored in main memory . Debugging interface writes interesting stuff to stdout .