Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Finish framework support for REAL_MULTIDIM_ARRAYS - #1383

Merged
jkotas merged 1 commit into
dotnet:masterfrom
jkotas:multidimm-arrays
Jun 9, 2016
Merged

jkotas merged 1 commit into
dotnet:masterfrom
jkotas:multidimm-arrays

Conversation

@jkotas

@jkotas jkotas commented Jun 8, 2016

Copy link
Copy Markdown
Member

No description provided.

@jkotas

jkotas commented Jun 8, 2016

Copy link
Copy Markdown
Member Author

Run related CoreCLR tests to verify that it works.


// Get to unwind info
PTR_UNWIND_INFO pUnwindInfo(dac_cast<PTR_UNWIND_INFO>(m_moduleBase + pNativeMethodInfo->runtimeFunction->UnwindInfoAddress));
uint8_t unwindBlockFlags = *(dac_cast<DPTR(uint8_t)>(pUnwindDataBlob) + unwindDataBlobSize);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fixing bug in handling of nested exceptions that I have run into along the way.

@janvorli Could you please take a look at this change? I think that the ELF code manager that you are working on should use the same logic. The frame pointer returned from here is just used to drive EH, so it just needs to be returned for anything that contains EH.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please put the unrelated stuff in a separate commit? It makes code archeology easier later.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@jkotas

jkotas commented Jun 8, 2016

Copy link
Copy Markdown
Member Author

@MichalStrehovsky Could you please take a look?

fixed (IntPtr* pThisArray = &m_pEEType)
{
// Lengths follow after _numComponents.
int* pLengths = (int*)pThisArray + 2 + PADDING;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have doubts about this formula - if pThisArray points at the m_pEEType member shouldn't we be adding a pointer to go over m_pEEType, then an Int32 to go over the flattened lengths, and then an optional padding Int32?

@MichalStrehovsky

Copy link
Copy Markdown
Member

LGTM otherwise. Thank you for finishing this! I was procrastinating this for too long. You can add "fixes #1103" to the commit message.

@jkotas
jkotas merged commit 181941f into dotnet:master Jun 9, 2016
@jkotas
jkotas deleted the multidimm-arrays branch June 10, 2016 22:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants