Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

GCInfo: Fix code-offset normalization on ARM #4481

Merged
merged 1 commit into from
Apr 22, 2016

Conversation

swaroop-sridhar
Copy link

@swaroop-sridhar swaroop-sridhar commented Apr 21, 2016

Fix NORMALIZE_CODE_OFFSET() on ARM to be a loss-less encoding
because safepoint code-offsets are encoded with a -1 adjustment.

This change fixes a build break on ARM, failing this assertion:
https://github.com/dotnet/coreclr/blob/master/src/gcinfo/gcinfoencoder.cpp#L1220

Fix NORMALIZE_CODE_OFFSET() on ARM to be a loss-less encoding
because safepoint code-offsets are encoded with a -1 adjustment.
@swaroop-sridhar
Copy link
Author

@rahku please review

@rahku
Copy link

rahku commented Apr 21, 2016

Looks good. But this would increase the gcinfo size for arm. There is potential to reduce size of gcinfo for both arm & arm64 by making normcallsite to be callsite -2 & callsite -4 for arm & arm64 respectively. We should look into doing this work as part of arm64 port.

@swaroop-sridhar
Copy link
Author

Opened #4497 to address the issue of saving bits in the encoding on ARM/ARM64.

@swaroop-sridhar swaroop-sridhar merged commit 0ce162f into dotnet:master Apr 22, 2016
@swaroop-sridhar swaroop-sridhar deleted the aagc2 branch April 22, 2016 00:55
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
GCInfo: Fix code-offset normalization on ARM

Commit migrated from dotnet/coreclr@0ce162f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants