Skip to content

Commit

Permalink
Fix DAC layout in checked builds (dotnet#35542)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdmaclea authored May 15, 2020
1 parent a5b5ec5 commit 77a3832
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/src/inc/sstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ template <COUNT_T MEMSIZE>
class EMPTY_BASES_DECL InlineSString : public SString
{
private:
DAC_ALIGNAS(SString)
BYTE m_inline[SBUFFER_PADDED_SIZE(MEMSIZE)];

public:
Expand Down Expand Up @@ -991,6 +992,7 @@ template <COUNT_T MEMSIZE>
class EMPTY_BASES_DECL ScratchBuffer : public SString::AbstractScratchBuffer
{
private:
DAC_ALIGNAS(::SString::AbstractScratchBuffer)
BYTE m_inline[MEMSIZE];

public:
Expand Down
1 change: 1 addition & 0 deletions src/coreclr/src/inc/utilcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -2573,6 +2573,7 @@ template <class MemMgr>
class CHashTableAndData : public CHashTable
{
public:
DAC_ALIGNAS(CHashTable)
ULONG m_iFree; // Index into m_pcEntries[] of next available slot
ULONG m_iEntries; // size of m_pcEntries[]

Expand Down

0 comments on commit 77a3832

Please sign in to comment.