diff options
author | Suchiman <robinsue@live.de> | 2019-06-11 21:32:51 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-06-11 20:26:23 -0700 |
commit | fb64e3a59a9dbb767a1843ebd5ae9cce30431ea6 (patch) | |
tree | 5977bfbeb9710a1368b9a64887afcfd60cb93f11 /src/gc | |
parent | 13001f90aa71a7a0ec4039922f29087680b44ec3 (diff) | |
download | coreclr-fb64e3a59a9dbb767a1843ebd5ae9cce30431ea6.tar.gz coreclr-fb64e3a59a9dbb767a1843ebd5ae9cce30431ea6.tar.bz2 coreclr-fb64e3a59a9dbb767a1843ebd5ae9cce30431ea6.zip |
Multiple CoreRT changes
Diffstat (limited to 'src/gc')
-rw-r--r-- | src/gc/gc.cpp | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp index e9b14c36d0..63673ff66b 100644 --- a/src/gc/gc.cpp +++ b/src/gc/gc.cpp @@ -681,6 +681,7 @@ process_sync_log_stats() } #ifdef MULTIPLE_HEAPS +#ifndef DACCESS_COMPILE enum gc_join_stage { @@ -1124,6 +1125,8 @@ t_join gc_t_join; t_join bgc_t_join; #endif //BACKGROUND_GC +#endif // DACCESS_COMPILE + #endif //MULTIPLE_HEAPS #define spin_and_switch(count_to_spin, expr) \ @@ -4314,7 +4317,7 @@ BOOL reserve_initial_memory (size_t normal_size, size_t large_size, size_t num_h if (allatonce_block) { g_gc_lowest_address = allatonce_block; - g_gc_highest_address = allatonce_block + (memory_details.block_count * (large_size + normal_size)); + g_gc_highest_address = allatonce_block + requestedMemory; memory_details.allocation_pattern = initial_memory_details::ALLATONCE; for(size_t i = 0; i < memory_details.block_count; i++) @@ -5036,24 +5039,14 @@ extern "C" uint64_t __rdtsc(); #else // _MSC_VER extern "C" ptrdiff_t get_cycle_count(void); #endif // _MSC_VER -#elif defined(_TARGET_ARM_) - static ptrdiff_t get_cycle_count() - { - // @ARMTODO: cycle counter is not exposed to user mode by CoreARM. For now (until we can show this - // makes a difference on the ARM configurations on which we'll run) just return 0. This will result in - // all buffer access times being reported as equal in access_time(). - return 0; - } -#elif defined(_TARGET_ARM64_) +#else static ptrdiff_t get_cycle_count() { - // @ARM64TODO: cycle counter is not exposed to user mode by CoreARM. For now (until we can show this - // makes a difference on the ARM configurations on which we'll run) just return 0. This will result in + // @ARMTODO, @ARM64TODO, @WASMTODO: cycle counter is not exposed to user mode. For now (until we can show this + // makes a difference on the configurations on which we'll run) just return 0. This will result in // all buffer access times being reported as equal in access_time(). return 0; } -#else -#error NYI platform: get_cycle_count #endif //_TARGET_X86_ class heap_select |