summaryrefslogtreecommitdiff
path: root/src/gc
diff options
context:
space:
mode:
authorWilliam Godbe <william.godbe@comcast.net>2015-09-29 14:06:58 -0700
committerWilliam Godbe <william.godbe@comcast.net>2015-10-06 10:34:23 -0700
commite3942e300637c6e9a3d098476fafa11ab062642a (patch)
treef705d00b339d78e6b2be3728a77c3816d833d659 /src/gc
parentbc146608854d1db9cdbcc0b08029a87754e12b49 (diff)
downloadcoreclr-e3942e300637c6e9a3d098476fafa11ab062642a.tar.gz
coreclr-e3942e300637c6e9a3d098476fafa11ab062642a.tar.bz2
coreclr-e3942e300637c6e9a3d098476fafa11ab062642a.zip
Fixed small bugs in decodemd.cpp, gcrecord.h, gc.cpp, Strike/util.cpp, and strike.cpp, as outlined in this article: http://www.viva64.com/en/b/0310/#ID0E5BJM
Diffstat (limited to 'src/gc')
-rw-r--r--src/gc/gc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp
index 6e74047d34..0c42d721c1 100644
--- a/src/gc/gc.cpp
+++ b/src/gc/gc.cpp
@@ -22544,7 +22544,7 @@ void gc_heap::make_free_lists (int condemned_gen_number)
void gc_heap::make_free_list_in_brick (BYTE* tree, make_free_args* args)
{
- assert ((tree >= 0));
+ assert ((tree != NULL));
{
int right_node = node_right_child (tree);
int left_node = node_left_child (tree);
@@ -23282,7 +23282,7 @@ void gc_heap::relocate_survivors_in_plug (BYTE* plug, BYTE* plug_end,
void gc_heap::relocate_survivors_in_brick (BYTE* tree, relocate_args* args)
{
- assert ((tree != 0));
+ assert ((tree != NULL));
dprintf (3, ("tree: %Ix, args->last_plug: %Ix, left: %Ix, right: %Ix, gap(t): %Ix",
tree, args->last_plug,
@@ -23463,7 +23463,7 @@ void gc_heap::walk_plug (BYTE* plug, size_t size, BOOL check_last_object_p, walk
void gc_heap::walk_relocation_in_brick (BYTE* tree, walk_relocate_args* args, size_t profiling_context)
{
- assert ((tree != 0));
+ assert ((tree != NULL));
if (node_left_child (tree))
{
walk_relocation_in_brick (tree + node_left_child (tree), args, profiling_context);
@@ -24041,7 +24041,7 @@ void gc_heap::compact_plug (BYTE* plug, size_t size, BOOL check_last_object_p, c
void gc_heap::compact_in_brick (BYTE* tree, compact_args* args)
{
- assert (tree >= 0);
+ assert (tree != NULL);
int left_node = node_left_child (tree);
int right_node = node_right_child (tree);
ptrdiff_t relocation = node_relocation_distance (tree);
@@ -27497,7 +27497,7 @@ void gc_heap::count_plug (size_t last_plug_size, BYTE*& last_plug)
void gc_heap::count_plugs_in_brick (BYTE* tree, BYTE*& last_plug)
{
- assert ((tree != 0));
+ assert ((tree != NULL));
if (node_left_child (tree))
{
count_plugs_in_brick (tree + node_left_child (tree), last_plug);
@@ -28518,7 +28518,7 @@ void gc_heap::realloc_in_brick (BYTE* tree, BYTE*& last_plug,
unsigned int& active_new_gen_number,
BYTE*& last_pinned_gap, BOOL& leftp)
{
- assert (tree >= 0);
+ assert (tree != NULL);
int left_node = node_left_child (tree);
int right_node = node_right_child (tree);