Changeset 98d6965d


Ignore:
Timestamp:
Dec 11, 2019, 7:35:37 AM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
312029a
Parents:
e307e12
Message:

temporarily remove default memory exhausted message, use NULL return instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/heap.cfa

    re307e12 r98d6965d  
    1010// Created On       : Tue Dec 19 21:58:35 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Dec  4 21:42:46 2019
    13 // Update Count     : 646
     12// Last Modified On : Sun Dec  8 21:01:31 2019
     13// Update Count     : 647
    1414//
    1515
     
    332332
    333333
    334 // #comment TD : Is this the samething as Out-of-Memory?
    335 static inline void noMemory() {
    336         abort( "Heap memory exhausted at %zu bytes.\n"
    337                    "Possible cause is very large memory allocation and/or large amount of unfreed storage allocated by the program or system/library routines.",
    338                    ((char *)(sbrk( 0 )) - (char *)(heapManager.heapBegin)) );
    339 } // noMemory
     334// static inline void noMemory() {
     335//      abort( "Heap memory exhausted at %zu bytes.\n"
     336//                 "Possible cause is very large memory allocation and/or large amount of unfreed storage allocated by the program or system/library routines.",
     337//                 ((char *)(sbrk( 0 )) - (char *)(heapManager.heapBegin)) );
     338// } // noMemory
    340339
    341340
Note: See TracChangeset for help on using the changeset viewer.