Skip to content

Commit

Permalink
Add GC_WRITE_BARRIER macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Feb 8, 2011
1 parent 22250ca commit 56eae14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/parrot/gc_api.h
Expand Up @@ -31,6 +31,8 @@

#define ALIGNED_STRING_SIZE(len) (((len) + sizeof (void*) + WORD_ALIGN_1) & WORD_ALIGN_MASK)

#define PARROT_GC_WRITE_BARRIER(i, p) do { if (PObj_GC_need_write_barrier_TEST((p))) Parrot_gc_write_barrier((i), (p)); } while(0)

typedef struct _Parrot_GC_Init_Args {
void *stacktop;
const char *system;
Expand Down

0 comments on commit 56eae14

Please sign in to comment.