Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
ARCH: x64
D_COMPILER: dmd
steps:
- script: set
displayName: environment
- script: systeminfo
displayName: systeminfo
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: '**/*'
TargetFolder: '$(Build.SourcesDirectory)/../druntime'
- script: git clone --branch $(DMD_BRANCH) https://github.com/dlang/dmd.git ../dmd
- script: |
call "%VSINSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
Expand All @@ -34,12 +43,21 @@ jobs:
HOST_DMD_VERSION: LATEST
strategy:
matrix:
x64:
x86:
OS: Win_32
MODEL: 32
ARCH: x86
D_COMPILER: dmd
steps:
- script: set
displayName: environment
- script: systeminfo
displayName: systeminfo
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: '**/*'
TargetFolder: '$(Build.SourcesDirectory)/../druntime'
- script: git clone --branch $(DMD_BRANCH) https://github.com/dlang/dmd.git ../dmd
- script: cd ../dmd && sh --login .azure-pipelines/windows.sh

Expand All @@ -59,6 +77,15 @@ jobs:
VISUALD_VER: v0.49.0
LDC_VERSION: 1.14.0
steps:
- script: set
displayName: environment
- script: systeminfo
displayName: systeminfo
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: '**/*'
TargetFolder: '$(Build.SourcesDirectory)/../druntime'
- script: git clone --branch $(DMD_BRANCH) https://github.com/dlang/dmd.git ../dmd
- script: cd ../dmd && sh --login .azure-pipelines/windows-visual-studio.sh
- script: cd ../dmd && call .azure-pipelines\windows-msbuild.bat
13 changes: 6 additions & 7 deletions src/core/thread/fiber.d
Original file line number Diff line number Diff line change
Expand Up @@ -1214,13 +1214,14 @@ private:
pstack -= reserve;
*(cast(EXCEPTION_REGISTRATION*)pstack) =
EXCEPTION_REGISTRATION( sehChainEnd, finalHandler );
auto pChainEnd = pstack;

push( cast(size_t) &fiber_entryPoint ); // EIP
push( cast(size_t) m_ctxt.bstack - reserve ); // EBP
push( 0x00000000 ); // EDI
push( 0x00000000 ); // ESI
push( 0x00000000 ); // EBX
push( cast(size_t) m_ctxt.bstack - reserve ); // FS:[0]
push( cast(size_t) pChainEnd ); // FS:[0]
push( cast(size_t) m_ctxt.bstack ); // FS:[4]
push( cast(size_t) m_ctxt.bstack - m_size ); // FS:[8]
push( 0x00000000 ); // EAX
Expand Down Expand Up @@ -1718,9 +1719,8 @@ unittest


// Test exception handling inside fibers.
version (Win32) {
// broken on win32 under windows server 2012: bug 13821
} else unittest {
unittest
{
enum MSG = "Test message.";
string caughtMsg;
(new Fiber({
Expand Down Expand Up @@ -1758,9 +1758,8 @@ unittest
new Fiber({}).call(Fiber.Rethrow.no);
}

version (Win32) {
// broken on win32 under windows server 2012: bug 13821
} else unittest {
unittest
{
enum MSG = "Test message.";

try
Expand Down