memory/mozalloc/mozalloc_abort.h
author Brian Hackett <bhackett1024@gmail.com>
Thu, 12 Mar 2015 10:58:19 -0600
changeset 233389 94f1fc3d9ec8820a89be01b98100a7ce935c8571
parent 232665 beed1c584a2264aab11aa41484083ba49ba4c0ab
child 418655 8c97493f2d4cbd69cd13a8ef03e591fba917f398
permissions -rw-r--r--
Bug 1135897 - Use unboxed objects for JSON objects and constant literals embedded in scripts, r=jandem.

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 * vim: sw=4 ts=4 et :
 */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef mozilla_mozalloc_abort_h
#define mozilla_mozalloc_abort_h

#include "mozilla/Attributes.h"
#include "mozilla/Types.h"

/**
 * Terminate this process in such a way that breakpad is triggered, if
 * at all possible.
 *
 * Note: MOZ_NORETURN seems to break crash stacks on ARM, so we don't
 * use that annotation there.
 */
MFBT_API
#if !defined(__arm__)
  MOZ_NORETURN
#endif
  void mozalloc_abort(const char* const msg);


#endif  /* ifndef mozilla_mozalloc_abort_h */