diff options
author | vsadov <vsadov@microsoft.com> | 2019-04-14 11:02:35 -0700 |
---|---|---|
committer | vsadov <vsadov@microsoft.com> | 2019-04-14 11:02:35 -0700 |
commit | b56d39c5812db4780c818140083cf753aca8ca5a (patch) | |
tree | 2c086d8f824483457bebbffcf1fd758e21522c6f /src/gc | |
parent | 449285b8b7ccc7158038e5ca3e6cfe11a0d7cc29 (diff) | |
download | coreclr-b56d39c5812db4780c818140083cf753aca8ca5a.tar.gz coreclr-b56d39c5812db4780c818140083cf753aca8ca5a.tar.bz2 coreclr-b56d39c5812db4780c818140083cf753aca8ca5a.zip |
Adjust plug_size_to_fit to consider large alignment om ARM32
Diffstat (limited to 'src/gc')
-rw-r--r-- | src/gc/gc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp index 9d909f173d..f71a32016b 100644 --- a/src/gc/gc.cpp +++ b/src/gc/gc.cpp @@ -8842,6 +8842,10 @@ public: plug_size_to_fit += (pad_in_front ? Align(min_obj_size) : 0); #endif //SHORT_PLUGS +#ifdef RESPECT_LARGE_ALIGNMENT + plug_size_to_fit += switch_alignment_size(FALSE); +#endif //RESPECT_LARGE_ALIGNMENT + int plug_power2 = index_of_highest_set_bit (round_up_power2 (plug_size_to_fit + Align(min_obj_size))); ptrdiff_t i; uint8_t* new_address = 0; |