Skip to content

Commit

Permalink
XXX To the pain!
Browse files Browse the repository at this point in the history
  • Loading branch information
nwc10 committed Jul 2, 2020
1 parent 4e503a4 commit f638928
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/6model/reprs/VMArray.h
@@ -1,7 +1,7 @@
/* Concurrent use of a VMArray is erroneous. This debugging option will
* catch bad usages. (Eventually, we will refactor VMArray to not have
* this issue.) */
#define MVM_ARRAY_CONC_DEBUG 0
#define MVM_ARRAY_CONC_DEBUG 1

/* Representation used by VM-level arrays. Adopted from QRPA work by
* Patrick Michaud. */
Expand Down
2 changes: 1 addition & 1 deletion src/core/exceptions.c
Expand Up @@ -869,7 +869,7 @@ MVM_NO_RETURN void MVM_oops(MVMThreadContext *tc, const char *messageFormat, ...
fprintf(stderr, "\n");
MVM_dump_backtrace(tc);
fprintf(stderr, "\n");
exit(1);
abort(); /// XXX Die horribly.
}

/* Throws an ad-hoc (untyped) exception. */
Expand Down
2 changes: 1 addition & 1 deletion src/core/fixedsizealloc.c
Expand Up @@ -10,7 +10,7 @@
* behavior. */

/* Turn this on to switch to a mode where we debug by size. */
#define FSA_SIZE_DEBUG 0
#define FSA_SIZE_DEBUG 1
#if FSA_SIZE_DEBUG
typedef struct {
MVMuint64 alloc_size;
Expand Down
2 changes: 1 addition & 1 deletion src/gc/debug.h
Expand Up @@ -4,7 +4,7 @@
* 2 = Checks on every object register access (slow)
* 3 = Collects garbage on every allocation
*/
#define MVM_GC_DEBUG 0
#define MVM_GC_DEBUG 1

#if MVM_GC_DEBUG
#define MVM_ASSERT_NOT_FROMSPACE(tc, c) do { \
Expand Down
1 change: 1 addition & 0 deletions src/moar.h
@@ -1,3 +1,4 @@
#undef NDEBUG
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion src/spesh/usages.h
@@ -1,5 +1,5 @@
/* Option to enable checking of define/use chains for debugging purposes. */
#define MVM_SPESH_CHECK_DU 0
#define MVM_SPESH_CHECK_DU 1

/* Usage information, which is held per SSA written register. */
struct MVMSpeshUsages {
Expand Down
2 changes: 1 addition & 1 deletion src/strings/uthash_types.h
@@ -1,7 +1,7 @@
#ifndef UTHASH_TYPES
#define UTHASH_TYPES
/* If set to 1, will throw if you add a key to the hash during iteration. */
#define MVM_HASH_THROW_ON_ITER_AFTER_ADD_KEY 0
#define MVM_HASH_THROW_ON_ITER_AFTER_ADD_KEY 1
/* If set to 1, will randomize bucket iteration order and bucket insertion order.
* HASH_ITER_FAST is not affected by iteration order randomization. */
#define MVM_HASH_RANDOMIZE 1
Expand Down

0 comments on commit f638928

Please sign in to comment.