Can't map modules to indices with shared libraries #114

Merged
merged 1 commit into from Jan 4, 2012

2 participants

@MartinNowak
D Programming Language member
  • Module may be imported from a shared library and can't
    be assigned a fixed index any longer.

  • Flag modules after having them initialized, leave
    them flags until destruction.

  • Use a simplified stack based DFO traversal to
    avoid deep recursion and limit alloca to 100KB.

  • Reduce complexity, each module must only be
    visited once.

@MartinNowak MartinNowak Can't map modules to indices with shared libraries
 - Module may be imported from a shared library and can't
   be assigned a simple index any longer.

 - Flag modules after having them initialized.

 - Use a simplified stack based DFO traversal to
   avoid deep recursion and limit alloca to 100KB.
e07f159
@complexmath complexmath merged commit 34925f2 into dlang:master Jan 4, 2012
@MartinNowak
D Programming Language member

Mmh, this seems to cause a Bus Error on OSX32 and a segmentation fault on OSX64.
Could be an alignment issue when using alloca memory for a struct array.
I don't have access to an OSX system. Can someone help me out with further details,
a small backtrace would be most helpful.

@complexmath
D Programming Language member
@MartinNowak
D Programming Language member

OK, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment