hotspot/src/share/vm/runtime/os.hpp
changeset 25949 34557722059b
parent 25946 1572c9f03fb9
child 26576 a9429d24d429
child 26557 e399effe36f9
equal deleted inserted replaced
25948:9b33776f4f07 25949:34557722059b
   662   static void* realloc (void *memblock, size_t size, MEMFLAGS flag);
   662   static void* realloc (void *memblock, size_t size, MEMFLAGS flag);
   663 
   663 
   664   static void  free    (void *memblock, MEMFLAGS flags = mtNone);
   664   static void  free    (void *memblock, MEMFLAGS flags = mtNone);
   665   static bool  check_heap(bool force = false);      // verify C heap integrity
   665   static bool  check_heap(bool force = false);      // verify C heap integrity
   666   static char* strdup(const char *, MEMFLAGS flags = mtInternal);  // Like strdup
   666   static char* strdup(const char *, MEMFLAGS flags = mtInternal);  // Like strdup
       
   667   // Like strdup, but exit VM when strdup() returns NULL
       
   668   static char* strdup_check_oom(const char*, MEMFLAGS flags = mtInternal);
   667 
   669 
   668 #ifndef PRODUCT
   670 #ifndef PRODUCT
   669   static julong num_mallocs;         // # of calls to malloc/realloc
   671   static julong num_mallocs;         // # of calls to malloc/realloc
   670   static julong alloc_bytes;         // # of bytes allocated
   672   static julong alloc_bytes;         // # of bytes allocated
   671   static julong num_frees;           // # of calls to free
   673   static julong num_frees;           // # of calls to free