X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fmini-cross-helpers.c;h=8aeb6ffb2f48e88b4a227ad352ad2b78a995d54c;hb=908e8381f067f41e4b456464944d0cb0eabcb4a7;hp=28e04d6d6288388a8ca141a481b7262cd1b7ea5a;hpb=1639e26a6b22a59d0bfb8ad564530eeff593e4a3;p=mono.git diff --git a/mono/mini/mini-cross-helpers.c b/mono/mini/mini-cross-helpers.c index 28e04d6d628..8aeb6ffb2f4 100644 --- a/mono/mini/mini-cross-helpers.c +++ b/mono/mini/mini-cross-helpers.c @@ -1,3 +1,7 @@ +/** + * \file + */ + #include "config.h" #include @@ -44,6 +48,12 @@ mono_dump_jit_offsets (void) #endif } +/* + * mono_cross_helpers_run: + * + * Check that the offsets given by object-offsets.h match the offsets + * on the host. + */ void mono_cross_helpers_run (void) { @@ -52,13 +62,14 @@ mono_cross_helpers_run (void) #endif #ifndef USED_CROSS_COMPILER_OFFSETS - if (g_getenv ("DUMP_CROSS_OFFSETS")) + if (g_hasenv ("DUMP_CROSS_OFFSETS")) mono_dump_jit_offsets (); #endif #if defined (HAS_CROSS_COMPILER_OFFSETS) && !defined (MONO_CROSS_COMPILE) mono_metadata_cross_helpers_run (); + /* The metadata offsets are already checked above */ #define DISABLE_METADATA_OFFSETS #define USE_CROSS_COMPILE_OFFSETS #define DECL_OFFSET(struct,field) this_should_not_happen_for_cross_fields