Skip to content

Commit

Permalink
Fix merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pleath committed Feb 13, 2018
1 parent e3e1a36 commit e81ec84
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/Common/Memory/Recycler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1739,15 +1739,15 @@ Recycler::ScanStack()
{
if (doSpecialMark)
{
ScanMemoryInline<true>(
this->savedThreadContext.GetRegisters(), sizeof(void*) * SavedRegisterState::NumRegistersToSave
ADDRESS_SANITIZER_APPEND(RecyclerScanMemoryType::Stack));
ScanMemoryInline<true>(
this->savedThreadContext.GetRegisters(), sizeof(void*) * SavedRegisterState::NumRegistersToSave
ADDRESS_SANITIZER_APPEND(RecyclerScanMemoryType::Stack));
}
else
{
ScanMemoryInline<false>(
this->savedThreadContext.GetRegisters(), sizeof(void*) * SavedRegisterState::NumRegistersToSave
ADDRESS_SANITIZER_APPEND(RecyclerScanMemoryType::Stack));
ScanMemoryInline<false>(
this->savedThreadContext.GetRegisters(), sizeof(void*) * SavedRegisterState::NumRegistersToSave
ADDRESS_SANITIZER_APPEND(RecyclerScanMemoryType::Stack));
}
}
else
Expand All @@ -1757,11 +1757,13 @@ Recycler::ScanStack()
// GC while running a script as that is when the possiblity of a UAF after GC exists.
if (doSpecialMark)
{
ScanMemoryInline<true, true /* forceInterior */>(this->savedThreadContext.GetRegisters(), sizeof(void*) * SavedRegisterState::NumRegistersToSave);
ScanMemoryInline<true, true /* forceInterior */>(this->savedThreadContext.GetRegisters(), sizeof(void*) * SavedRegisterState::NumRegistersToSave
ADDRESS_SANITIZER_APPEND(RecyclerScanMemoryType::Stack));
}
else
{
ScanMemoryInline<false, true /* forceInterior */>(this->savedThreadContext.GetRegisters(), sizeof(void*) * SavedRegisterState::NumRegistersToSave);
ScanMemoryInline<false, true /* forceInterior */>(this->savedThreadContext.GetRegisters(), sizeof(void*) * SavedRegisterState::NumRegistersToSave
ADDRESS_SANITIZER_APPEND(RecyclerScanMemoryType::Stack));
}
}
END_DUMP_OBJECT(this);
Expand All @@ -1779,6 +1781,7 @@ Recycler::ScanStack()
{
ScanMemoryInline<false>((void**) stackTop, stackScanned
ADDRESS_SANITIZER_APPEND(RecyclerScanMemoryType::Stack));
}
}
else
{
Expand Down

0 comments on commit e81ec84

Please sign in to comment.