Skip to content

Commit

Permalink
Introduce NullableObjectReference
Browse files Browse the repository at this point in the history
ObjectReference is now non-nullable, while NullableObjectReference is
used to pass values to C.
  • Loading branch information
wks committed Apr 28, 2024
1 parent f63ea9a commit 49e545c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/mmtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ typedef rb_thread_t* MMTk_VMMutatorThread;
typedef struct MMTk_GCThreadTLS* MMTk_VMWorkerThread;
typedef void* MMTk_Address;
typedef void* MMTk_ObjectReference;
typedef void* MMTk_NullableObjectReference;
typedef uint32_t MMTk_AllocationSemantics;


Expand Down Expand Up @@ -164,7 +165,7 @@ bool mmtk_is_reachable(MMTk_ObjectReference object);

bool mmtk_is_live_object(MMTk_ObjectReference object);

MMTk_ObjectReference mmtk_get_forwarded_object(MMTk_ObjectReference object);
MMTk_NullableObjectReference mmtk_get_forwarded_object(MMTk_ObjectReference object);

bool mmtk_is_mmtk_object(MMTk_Address addr);

Expand Down

0 comments on commit 49e545c

Please sign in to comment.