reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/builtins/emutls.c
  358   if (array == NULL) {
  360     array = (emutls_address_array *)malloc(emutls_asize(new_size));
  361     if (array) {
  362       memset(array->data, 0, new_size * sizeof(void *));
  363       array->skip_destructor_rounds = EMUTLS_SKIP_DESTRUCTOR_ROUNDS;
  365     emutls_check_array_set_size(array, new_size);
  366   } else if (index > array->size) {
  367     uintptr_t orig_size = array->size;
  369     array = (emutls_address_array *)realloc(array, emutls_asize(new_size));
  369     array = (emutls_address_array *)realloc(array, emutls_asize(new_size));
  370     if (array)
  371       memset(array->data + orig_size, 0,
  373     emutls_check_array_set_size(array, new_size);
  375   return array;