src/Pure/ML/ml_heap.ML
changeset 62825 e6e80a8bf624
parent 62630 bc772694cfbd
child 67622 5289d3bdb261
equal deleted inserted replaced
62824:3498c66b5e55 62825:e6e80a8bf624
     4 ML heap operations.
     4 ML heap operations.
     5 *)
     5 *)
     6 
     6 
     7 signature ML_HEAP =
     7 signature ML_HEAP =
     8 sig
     8 sig
       
     9   val obj_size: 'a -> int
     9   val share_common_data: unit -> unit
    10   val share_common_data: unit -> unit
       
    11   val save_child: string -> unit
    10 end;
    12 end;
    11 
    13 
    12 structure ML_Heap: ML_HEAP =
    14 structure ML_Heap: ML_HEAP =
    13 struct
    15 struct
    14   fun share_common_data () = PolyML.shareCommonData PolyML.rootFunction;
    16 
       
    17 val obj_size = PolyML.objSize;
       
    18 
       
    19 fun share_common_data () = PolyML.shareCommonData PolyML.rootFunction;
       
    20 
       
    21 fun save_child name =
       
    22   PolyML.SaveState.saveChild (name, List.length (PolyML.SaveState.showHierarchy ()));
       
    23 
    15 end;
    24 end;